What it offers
- deposit: Deposit assets into vault, receive yield-bearing shares
- withdraw: Withdraw assets by specifying asset amount
- redeem: Withdraw by specifying share amount
Notes
- ERC-4626 compliant (same interface as sfrxETH, pufETH, sDAI)
- Each vault has a unique address per underlying asset + strategy combination
- Approve underlying token to vault before depositing
- Vaults are deployed via factory - no single canonical vault address
Its names in a program
On Ethereum,YearnV3 is a namespace: its contracts need no import.
Deployments
ABI
YearnV3VaultABI
import YearnV3VaultABI from "./protocols/yearn-v3/YearnV3VaultABI.json";
deposit(uint256 assets, address receiver) returns (uint256 shares)withdraw(uint256 assets, address receiver, address owner) returns (uint256 shares)redeem(uint256 shares, address receiver, address owner) returns (uint256 assets)convertToShares(uint256 assets) view returns (uint256)convertToAssets(uint256 shares) view returns (uint256)totalAssets() view returns (uint256)pricePerShare() view returns (uint256)balanceOf(address account) view returns (uint256)approve(address spender, uint256 amount) returns (bool)
Next steps
- Protocols: the other protocols, by what they do.
- Protocols and tokens: calling a contract by its namespace, or through its ABI.
- Glossary: the words these pages use, in plain terms.
