Allow funds to deposit into Yearn Finance Vaults (USDC + DAI + WBTC + WETH)
complete
DeepCryptoDive
Recently, Yearn Finance launched its v2 Vaults. These have improved debt management, more efficient unwinding, and can handle multiple strategies at once. They also allow for rather gas-efficient depositing and withdrawal of assets.
It would be very nice if we could enter these Vaults, from within Enzyme.
Especially those with underlying assets that are already supported by Enzyme.
e.g.
Note that a user can withdraw his liquidity from these vaults at any time.
Technically:
Entering a vault involves calling
deposit(_amount, recipient)
, which transfers the underlying asset into the vault and returns a vault token to the depositor. These vault tokens (yvTokens) accrue in value over time, and can be redemeed at any time into the underlying asset. The price of the yvTokens is stored on-chain in the contract itself (pricePerShare
). My understanding is that this mitigates oracle attacks, and should make integration quite straightforward.Note: There are also v2 vaults with more 'exotic' underlying assets (e.g. Curve LP tokens) which I left out here since these might be difficult to implement on the short-term. But interesting on that front: crvSAAVE, crvAAVE, crvSETH, crvSTETH.
tl;dr These vaults offer very nice ROIs in a set-and-forget setting. I believe they could be a very valuable addition to the toolkit of Enzyme fund managers.
Info for Yearn is somewhat scattered, but some good references:
DeepCryptoDive
complete
Mona El Isa
this seems like a recurring and popular suggestion. We're currently planning when we can make time for the integration
Mona El Isa
planned
DeepCryptoDive
Update: their WETH V2 vault is also live now: https://etherscan.io/address/0xa9fE4601811213c340e850ea305481afF02f5b28
As well as a YFI v2 vault - https://etherscan.io/address/0xBA2E7Fed597fd0E3e70f5130BcDbbFE06bB94fe1
+ some other new ones (e.g. 1INCH)