Skip to main content

yVaults v2

Overview

The second iteration of yVaults are auto-compounding contracts that allow depositors to earn and compound yield on deposited assets. These are still the trusty workhorse vaults for Curve, Velodrome, and Aerodrome LP positions. They allow multiple strategies and can be automatically harvested, but they have mostly been superseded by the V3 architecture for single asset vaults and other more exotic asset types. They are not ERC-4626 compatible, nor as flexible as the newer V3 vaults.

image

v2 yVault Improvements

  • Up to 20 strategies per vault: This will increase the flexibility to manage capital efficiently during different market scenarios. Each strategy has a capital cap. This is useful to avoid over-allocating funds to a strategy that cannot increase APY anymore.
  • Strategist and Guardian are the new Controllers: The Controller concept is not available in V2 yVaults and has been replaced by a Guardian and the Strategy creator (strategist). These 2 actors oversee strategy performance and are empowered to take action to improve capital management or act on critical situations.
  • Automated vault housekeeping (Keep3r network): harvest() and earn() calls are now automated through the Keep3r bots network. These 2 function calls are used to purchase new underlying collateral by selling the earned tokens while moving the profits back to the vault and later into strategies. The keep3r network takes the heavy lifting of doing these calls and running with the gas costs in exchange for keep3r tokens. This approach unloads humans from these housekeeping tasks.
  • No Withdrawal Fee: The one-time fee charged on balance upon withdrawal has been turned off for all vaults and only existed in the v1 iteration.

Read More

V2 developer docs: https://docs.yearn.fi/developers/v2/getting-started

dApp: https://yearn.fi/vaults

Guides V2 Interface Guide