# Track Wei : Week 2 

By [lizgeorge](https://paragraph.com/@lizgeorge) · 2023-02-17

---

EIF Fellowship challenges for the week :

1.  **Challenge 2 : Token Vendor**
    
    The challenge required us to write a smart contract to Buy , Sell ERC20 tokens. Along the way, it helped to understand the usage of approve while interacting with smart contracts.
    
    **Challenges** :
    
    I was able to finish the contract and but the test cases were failing while trying to run it.
    
    **_Solution_** : Had to manage the validation added in the contract to be able to successfully pass the test cases.
    
    Deployed App : [Token Vendor](https://shaky-throne.surge.sh)
    
    Verified contract address : [Contract](https://goerli.etherscan.io/address/0x9751A42CC72Dc9843dEe911a19DDC53292881F4f)
    
2.  **Challenge 3 : Dice Game**
    
    The challenge was to exploit the randomization feature of the Dice contract. Activity helped to under how to create random numbers using blockhash. This also led me to explore into Oracles and Chainlink.
    
    Deployed Contract : [Dice Game](https://descriptive-scarf.surge.sh/)
    
    Verified contract address : [Contract](https://goerli.etherscan.io/address/0xbf09758F9871562808BcA76049DDe980DE2c948C)

---

*Originally published on [lizgeorge](https://paragraph.com/@lizgeorge/track-wei-week-2)*
