Cover photo

StreamFi: Week 6 @ ETHIndia Fellowship 3.0

Smart Contracts

Smart contracts require a certain amount of detail and precision over regular code. They require gas optimisations and multiple security checks so that assets are neither wasted nor stolen or locked in the contract.

Some interesting reads:

https://medium.com/beaver-smartcontract-security/defi-security-lecture-7-price-oracle-manipulation-d716cdeaaf77

https://consensys.github.io/smart-contract-best-practices/attacks/oracle-manipulation/

Current State of Streamfi

Tasks accomplished:

  1. Fixed some outstanding bugs with the DCA feature, made it more multi-user compatible and added more metrics for users to track like last swap time.

  2. Researched how to set slippage checks with Uniswap, getting rates from the SDK about current market conditions and setting up smart contract automation using gelato.

Next Steps

Next week will be focused on implementing the slippage checks in the UI, setting up the automation script and performing checks on further improvements.

Conclusion

After last week’s accomplishments, this week was mostly spent on research about writing better smart contracts and different factors to be kept in mind while operating with DCA - getting data through oracles and public auctions.