← Back to home

Superfest Vaults

A collection of ERC4626/ERC7540 vaults for farming rewards during Superfest

Screenshots

Superfest Vaults screenshot 1
Superfest Vaults screenshot 2
Superfest Vaults screenshot 3

Problem Statement

Superfest Vaults is a project which leverages ERC4626 vault standards to simplify and optimize user participation in the Optimism Superfest. Our project automates the process of earning rewards from multiple protocols, providing a seamless experience for usersKey Features:Users can easily deposit assets into our smart contract vaults to get rewards from protocols participating in the SuperfestAutomated Reward Collection: The vaults automatically collect OP token rewards on Optimism, convert it to vault assets and increase vaults positionsVault mechanics can be simulated using Tenderly Virtual Testnets featuresTODO: Multi-Protocol Support: Interact with various protocols participating in the Superfest through a single interface.TODO: User-Friendly Dashboard: Monitor your deposits, rewards, and overall performance in real-time.

Solution

Smart Contract Development: Vaults are based on Yearn strategies templates and implement BaseStrategy and Tokenized Strategy contracts. It was made to simplify project development and re-use math already implemented by Yearn team.Scaffold-eth-2 was used to compile, debug and deploy smart contracts to different chainsTenderly Virtual Testnets were used to simulate transactions on forks of mainnet of different chains and model real APY of the strategy.For this hackathon the only strategy was implemented for Balancer USDC/Mode pool which at the moment has 148.2% APY.https://merkl.angle.money/ was used to fetch data about all Superfest campaigns and its APYStrategy description:A user provides MODE to the vaultVault provides MODE to USDC20/MODE80 pool and earns OP Superfest rewards + Balancer fees. Strategy smart contract is deployed using Create2 opcode to make contract address the same on both Mode and Optimism networksOP Superfest rewards are claimed at Optimism chain, swapped to USDC and sent to Vault on the Mode chain, where converted to MODE and provided to Balancer pool.

Hackathon

Superhack 2024

2024

Contributors