Cover photo

Week-6 of EIF

Share Dialog

This is the week in which I started with building lacheío.

  • So firstly I took pen and paper and started listing out all the tasks which I would have to perform in order to finish the project.

  • The first and foremost task I completed is reading PoolTogether smart contracts (a very high-level overview), the contracts were well documented.

  • PoolTogether uses compound for depositing USDCs and earning interest on them which.

  • I started with exploring Aave, reading its staking smart contract and how to supply Eth to it, read about function access specifiers like external, internal, virtual, and override and their use cases in my contract.

  • I wrote a smart contract in which the user can deposit eth and then that eth will be supplied to the Aave eth pool which returns Weth to the smart contract which is interest-bearing and is updated in real-time.

  • One more new functionality I added is for the user which is ,user can set a savings goal amount like 0.5 ETH and the user can’t withdraw until this goal amount is reached, again this is optional, the user can set the goal amount to 0 .

Next week i’ll be working on lottery system logic so stay tuned for that.

Sayonara.