Inspiration

DeFi protocols are getting exploited constantly, experienced users know never to deposit all of their funds in any single chain or protocol. Savor was based on this idea, deploying stable coins across multiple chains and protocols to mitigate the risk of any single exploit draining the entire vault of funds.

What it does

Savor is a cross-chain stable coin yield aggregator. In its current state, Savor is able to receive USDC on AVAX and Polygon and deposit them into the main vault which is then being deposited on Avax in the highest yield stable coin pool in Vector Finance. We have the capability to add more pools and chains but for this hackathon we decided to start with a single strategy.

How we built it

-Built Savor Vault using ERC4626, and then adapted the Rari Capital vaults. Main changes were adding Bridging capabilities as well as new account methods. Since funds may be deployed on other chains and there is not good way for cross chain data messaging we built a withdrawal queue and a manually updated virtual price for deposits and withdraws to all be handled the same no matter what chain someone is on -Built custom npm packages for custom Hardhat tasks to make deployments, verification of all contracts as simple as possible

  • Built Bridgerton Contract to interact with strargates bridge. Is able to be the bridge contract for any set amount of vaults. Is chain and asset agnostic.

-Used Hardhat development framework for all contract development and Moralis API's.

-Set up Moralis servers with Sync to add in real-time to dashboard. Whenever deposits/withdrawals are made the Moralis DB tables push the transaction and status to our dashboard and keep it updated as transactions status changes

Challenges we ran into

-Found a problem with Moralis component so had to build our own using some of the pieces from Moralis

Accomplishments that we're proud of

This is most of the team's first experience in building in web3 and being able to create a fully useable protocol on mainnet is an incredible accomplishment in itself.

What we learned

-Really enjoyed the complexity of this project and found myself completely engulfed in learning about vaults/strategies and what's involved with moving funds around different chains.

What's next for Savor

If we are able to build interest in this idea and solve a problem that people need. We will create more complex strategies with more pools and chains with contingency plans for any strategy getting exploited.

Built With

  • bridgerton
  • chainlink
  • erc4626
  • moralis
  • rari
  • stargate
Share this project:

Updates

posted an update

Built Savor Vault using ERC4626, and then adapted the Rari Capital vaults. Main changes were adding Bridging capabilities as well as new account methods. Since funds may be deployed on other chains and there is not good way for cross chain data messaging we built a withdrawal queue and a manually updated virtual price for deposits and withdraws to all be handled the same no matter what chain someone is on

Log in or sign up for Devpost to join the conversation.

posted an update

Set up Moralis servers with Sync to add in real-time to dashboard. Whenever deposits/withdrawals are made the Moralis DB tables push the transaction and status to our dashboard and keep it updated as transactions status change

Log in or sign up for Devpost to join the conversation.