← Back to home

AutoSafe

TypeScript

AutoSafe is an automated piggy bank that saves a predetermined amount cUSD at specified intervals as well as also saves Celo native coin whenever it goes -1% on the 24hour chart.

Screenshots

AutoSafe screenshot 1
AutoSafe screenshot 2
AutoSafe screenshot 3

Problem Statement

This project is a decentralised bank with savings functionalities in the form ofSimple timelock to hold stableCoins and native assetsDepositing stable ERC20 tokens into Superform's Yearn Base Strategy using the ERC4626 standardAutomated savings using Chainlink keeper functionNative tokens can also be deposited to achieve a dollar-cost-averaging approach. here we implemented the Pyth oracle to fetch on-chain data which serves as gateway to making native token deposits. Deposits is only permitted if the CELO/USD 24hour chart shows a downtrend greater than 1%(used for convinience, initial plan was to use 5%). This provides an hedge against the fear of devaluation associated with crypto assets

Solution

There are two major smart contracts all deployed and verified via foundry on the celoAlfojores network.The front-end was scaffolded using celo-composer which is based on typescript.The smart contracts were integrated using wagmi but viem was also used for convenience in some instances.

Hackathon

Superhack 2024

2024

Prizes

  • 🏆

    Deploy on our new Cel2 Testnet Dango and provide feedback

    Celo

  • 🏆

    Use Blockscout Block Explorer!

    Blockscout

Contributors