project screenshot 1
project screenshot 2
project screenshot 3

Yieldhive

Yieldhive is the home for cross-chain and native yield strategy vaults of OP chains.

Yieldhive

Created At

Superhack 2024

Winner of

Superform - Best ERC-4626 vault implementation 2nd place

Blockscout - Use Blockscout Block Explorer!

Prize Pool

Mode - Best DeFi innovation

Pyth - Most Innovative use of Pyth pull oracle (Price Feeds) 3rd place

Tenderly - Build a dapp with Virtual TestNets

Project Description

Yieldhive is a one-stop shop for strategies where you can put your hard-earned crypto and earn passive income. We are targeting all the chains part of the Superchain group where we are integrating with various protocols cross-chain and native. People can invest their funds on our platform and we take care of the end-to-end process of investing them through various strategies, routing them to various protocols and farming rewards for them.

How it's Made

The core of the project are Solidity smart contracts that implements an ERC4626 vault strategy. It uses OpenZeppelin contracts for standard implementations like ERC20, ERC4626, and Ownable. The contract interacts with multiple DeFi protocols:

  1. Aave: For lending and borrowing
  2. Aerodrome: For liquidity provision and yield farming
  3. Uniswap V3: For token swaps
  4. Oracle Integration: Pyth Network is used for price feeds, allowing the contract to get real-time price data for various assets.
  5. Asset Management: The strategy involves supplying USDC to Aave, borrowing cbETH, and then using these assets in Aerodrome's liquidity pools. It includes functions for depositing, withdrawing, and harvesting rewards.
  6. Swap Router: Uniswap V3's swap router is used for token swaps, allowing the contract to exchange between different assets efficiently.
  7. Testing and Deployment: Tenderly's virtual testnet was used for deploying and testing the contract, providing a sandbox environment.
  8. Frontend Integration: Aa frontend that interacts with this contract, Wagmi and Ethers.js. Notable technical aspects:
  9. Multi-protocol Integration: The contract seamlessly integrates with multiple DeFi protocols (Aave, Aerodrome, Uniswap) to create a complex yield strategy.
  10. Dynamic Asset Management: The contract dynamically manages assets based on price feeds and protocol parameters, adjusting positions for optimal yield.
  11. Price Oracle Usage: Pyth Network is used for reliable price feeds, crucial for making informed decisions in the strategy.
  12. Gas Optimization: The contract uses various techniques to optimize gas usage, such as batching operations and efficient swap routing.
background image mobile

Join the mailing list

Get the latest news and updates