What you can do
| find-vault | Pick a vault by chain, asset and APY | GET https://api.beefy.finance/vaults and filter status == active and chain; GET https://api.beefy.finance/apy for the APY; check the risks field before depositing. |
| deposit | Deposit a want token into a vault | approve vault.want() for the amount, then vault.deposit(amount) (or depositAll() for the full balance). Shares received = amount * totalSupply / balance (first deposit: 1 share per want unit). The mooToken balance is the receipt. |
| withdraw | Redeem mooTokens for want | vault.withdraw(shares) with shares as mooToken units (18 decimals), or withdrawAll() for the full mooToken balance. The vault pulls from the strategy when idle funds are short, so a withdrawal can cost gas-heavy calls but no approval. |
| check-position | Value a mooToken position | position in want = mooBalance * vault.getPricePerFullShare() / 1e18. In USD multiply by the want price from https://api.beefy.finance/lps or the vault's assets. |
| zap-in | Deposit any supported token through the zap router | approve zapTokenManager (not the router) for the input token, build an Order and a Step[] route (Beefy builds the route off-chain), then router.executeOrder(order, route). Set minOutputAmount to guard slippage. Direct deposit of want is simpler when the caller already holds want. |
Each vault runs a strategy that compounds rewards from third-party protocols (Curve, Convex, Morpho, Silo, Aave and others). Losses or exploits in those protocols reach the vault.
Beefy's owner can change a vault's strategy (proposeStrat then upgradeStrat). Read strategy() and the vault's risks field before large deposits.
Vaults with status eol are retired and no longer harvested. They can still hold funds, so withdraw before rewards stop accruing.
getPricePerFullShare can fall if the strategy takes a loss, so a position may be worth less than the amount deposited.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).BeefyZapRouter (ethereum)router on ethereum0x5Cc9400FfB4Da168Cf271e912F589462C3A00d1F
write executeOrder(((address,uint256)[],(address,uint256)[],(address,uint256,bytes),address,address),(address,uint256,bytes,(address,int32)[])[])
Zap with an existing approval. Argument 1: Order (inputs as (token, amount) pairs, outputs as (token, minOutputAmount) pairs, relay as (target, value, data), user, recipient). The user must be msg.sender and must have approved zapTokenManager (not the router) for each input token. Argument 2: route steps (target, value, data, tokens) that Beefy builds off-chain. Reverts with Slippage if an output is below minOutputAmount.
write executeOrder(((address,uint256)[],uint256,uint256),((address,uint256)[],(address,uint256)[],(address,uint256,bytes),address,address),bytes,(address,uint256,bytes,(address,int32)[])[])
Zap with a signed Permit2 batch transfer. Arguments: PermitBatchTransferFrom (permitted tokens and amounts, nonce, deadline), the same Order, the user's EIP-712 signature over the order, and the route. A relayer can submit it for the user. The user must have approved Permit2 for the input tokens.
read tokenManager()
Address of the token manager that pulls user tokens. This is the address users approve for zaps.
read permit2()
Uniswap Permit2 contract the router uses for signed zaps.
read owner()
Owner of the router (Beefy keeper).
read paused()
True when zaps are paused. Check before building an order.
BeefyVaultV7Factory (ethereum)factory on ethereum0xC551dDCE8e5E657503Cd67A39713c06F2c0d2e97
read instance()
The BeefyVaultV7 implementation that clones copy. Read this to confirm the template before trusting a clone.
write cloneVault()
Deploy a new vault as a minimal proxy (EIP-1167 clone) of instance() and return its address. The factory code does not call an initializer on the clone.
write cloneContract(address)
Clone an arbitrary implementation address and return the clone. Emits ProxyCreated.
mooCurveTriCryptoUSDT vault (id convex-tricrypto-usdt, active)vault on ethereum0xC4c68922058f45952C05296ABef16d8b5BD2190f
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
mooCurveETH+-WETH vault (id curve-eth+-weth, active)vault on ethereum0x3a40143c325D294806017F8D5606610B2d86c54e
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
BeefyZapRouter (arbitrum)router on arbitrum0xf49F7bB6F4F50d272A0914a671895c4384696E5A
write executeOrder(((address,uint256)[],(address,uint256)[],(address,uint256,bytes),address,address),(address,uint256,bytes,(address,int32)[])[])
Zap with an existing approval. Argument 1: Order (inputs as (token, amount) pairs, outputs as (token, minOutputAmount) pairs, relay as (target, value, data), user, recipient). The user must be msg.sender and must have approved zapTokenManager (not the router) for each input token. Argument 2: route steps (target, value, data, tokens) that Beefy builds off-chain. Reverts with Slippage if an output is below minOutputAmount.
write executeOrder(((address,uint256)[],uint256,uint256),((address,uint256)[],(address,uint256)[],(address,uint256,bytes),address,address),bytes,(address,uint256,bytes,(address,int32)[])[])
Zap with a signed Permit2 batch transfer. Arguments: PermitBatchTransferFrom (permitted tokens and amounts, nonce, deadline), the same Order, the user's EIP-712 signature over the order, and the route. A relayer can submit it for the user. The user must have approved Permit2 for the input tokens.
read tokenManager()
Address of the token manager that pulls user tokens. This is the address users approve for zaps.
read permit2()
Uniswap Permit2 contract the router uses for signed zaps.
read owner()
Owner of the router (Beefy keeper).
read paused()
True when zaps are paused. Check before building an order.
BeefyVaultV7Factory (arbitrum)factory on arbitrum0x8396f3d25d07531a80770Ce3DEA025932C4953f7
read instance()
The BeefyVaultV7 implementation that clones copy. Read this to confirm the template before trusting a clone.
write cloneVault()
Deploy a new vault as a minimal proxy (EIP-1167 clone) of instance() and return its address. The factory code does not call an initializer on the clone.
write cloneContract(address)
Clone an arbitrary implementation address and return the clone. Emits ProxyCreated.
mooSiloV2ArbitrumUSDC (Valamore) vault (id silov2-arbitrum-usdc-valamore, eol)vault on arbitrum0x0C0846C5D8194BC327669763aC6af9b788edB409
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
mooBeefyUniswapwstETH-WETH vault (id uniswap-cow-arb-wsteth-weth-vault, active)vault on arbitrum0x749e0767C811a4AE867dDac6280aE8b2C57b75B1
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
BeefyZapRouter (base)router on base0x6F19Da51d488926C007B9eBaa5968291a2eC6a63
write executeOrder(((address,uint256)[],(address,uint256)[],(address,uint256,bytes),address,address),(address,uint256,bytes,(address,int32)[])[])
Zap with an existing approval. Argument 1: Order (inputs as (token, amount) pairs, outputs as (token, minOutputAmount) pairs, relay as (target, value, data), user, recipient). The user must be msg.sender and must have approved zapTokenManager (not the router) for each input token. Argument 2: route steps (target, value, data, tokens) that Beefy builds off-chain. Reverts with Slippage if an output is below minOutputAmount.
write executeOrder(((address,uint256)[],uint256,uint256),((address,uint256)[],(address,uint256)[],(address,uint256,bytes),address,address),bytes,(address,uint256,bytes,(address,int32)[])[])
Zap with a signed Permit2 batch transfer. Arguments: PermitBatchTransferFrom (permitted tokens and amounts, nonce, deadline), the same Order, the user's EIP-712 signature over the order, and the route. A relayer can submit it for the user. The user must have approved Permit2 for the input tokens.
read tokenManager()
Address of the token manager that pulls user tokens. This is the address users approve for zaps.
read permit2()
Uniswap Permit2 contract the router uses for signed zaps.
read owner()
Owner of the router (Beefy keeper).
read paused()
True when zaps are paused. Check before building an order.
BeefyVaultV7Factory (base)factory on base0xBC4a342B0c057501E081484A2d24e576E854F823
read instance()
The BeefyVaultV7 implementation that clones copy. Read this to confirm the template before trusting a clone.
write cloneVault()
Deploy a new vault as a minimal proxy (EIP-1167 clone) of instance() and return its address. The factory code does not call an initializer on the clone.
write cloneContract(address)
Clone an arbitrary implementation address and return the clone. Emits ProxyCreated.
mooMorphoBaseSteakhouseHighYieldUSDC vault (id morpho-base-steakhouse-high-yield-usdc, active)vault on base0xF1C55b6E063ee90A33FFE62deBe618962bae021e
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
mooMorphoBaseGauntletFrontierUSDC vault (id morpho-base-gauntlet-frontier-usdc, active)vault on base0x83152eE78d8f20Bba134A5FF000D551355Ce3996
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
BeefyZapRouter (avalanche)router on avalanche0x2E72e1436F1a2B2e0d2fa4394Ac06857c7b281B3
write executeOrder(((address,uint256)[],(address,uint256)[],(address,uint256,bytes),address,address),(address,uint256,bytes,(address,int32)[])[])
Zap with an existing approval. Argument 1: Order (inputs as (token, amount) pairs, outputs as (token, minOutputAmount) pairs, relay as (target, value, data), user, recipient). The user must be msg.sender and must have approved zapTokenManager (not the router) for each input token. Argument 2: route steps (target, value, data, tokens) that Beefy builds off-chain. Reverts with Slippage if an output is below minOutputAmount.
write executeOrder(((address,uint256)[],uint256,uint256),((address,uint256)[],(address,uint256)[],(address,uint256,bytes),address,address),bytes,(address,uint256,bytes,(address,int32)[])[])
Zap with a signed Permit2 batch transfer. Arguments: PermitBatchTransferFrom (permitted tokens and amounts, nonce, deadline), the same Order, the user's EIP-712 signature over the order, and the route. A relayer can submit it for the user. The user must have approved Permit2 for the input tokens.
read tokenManager()
Address of the token manager that pulls user tokens. This is the address users approve for zaps.
read permit2()
Uniswap Permit2 contract the router uses for signed zaps.
read owner()
Owner of the router (Beefy keeper).
read paused()
True when zaps are paused. Check before building an order.
BeefyVaultV7Factory (avalanche)factory on avalanche0xee78529E158E82AC54c89608A9664F5597050526
read instance()
The BeefyVaultV7 implementation that clones copy. Read this to confirm the template before trusting a clone.
write cloneVault()
Deploy a new vault as a minimal proxy (EIP-1167 clone) of instance() and return its address. The factory code does not call an initializer on the clone.
write cloneContract(address)
Clone an arbitrary implementation address and return the clone. Emits ProxyCreated.
mooSiloV2AvalancheUSDC MEV vault (id silov2-avalanche-usdc-mev, eol)vault on avalanche0xd1Fec8530a8E824f051D80Ce17D238e96A75BCB2
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
mooSiloV2AvalancheUSDT-Valamore vault (id silov2-avalanche-usdt-valamore, eol)vault on avalanche0x7e74446ee441A8dA46F61F9ADa7f8368d26e0eEa
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
BeefyVaultV7Factory (bsc)factory on bsc0xe596eC590DE52C09c8D1C7A1294B32F957A7c94e
read instance()
The BeefyVaultV7 implementation that clones copy. Read this to confirm the template before trusting a clone.
write cloneVault()
Deploy a new vault as a minimal proxy (EIP-1167 clone) of instance() and return its address. The factory code does not call an initializer on the clone.
write cloneContract(address)
Clone an arbitrary implementation address and return the clone. Emits ProxyCreated.
mooCakeV2CAKE-BNB vault (id cakev2-cake-bnb, eol)vault on bsc0xb26642B6690E4c4c9A6dAd6115ac149c700C7dfE
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
mooCakeV2BNB-BUSD vault (id cakev2-busd-bnb, eol)vault on bsc0xAd61143796D90FD5A61d89D63a546C7dB0a70475
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
BeefyZapRouter (fraxtal)router on fraxtal0x63B257a372AA04c8a078D43BCAAdaD359ce1faa2
write executeOrder(((address,uint256)[],(address,uint256)[],(address,uint256,bytes),address,address),(address,uint256,bytes,(address,int32)[])[])
Zap with an existing approval. Argument 1: Order (inputs as (token, amount) pairs, outputs as (token, minOutputAmount) pairs, relay as (target, value, data), user, recipient). The user must be msg.sender and must have approved zapTokenManager (not the router) for each input token. Argument 2: route steps (target, value, data, tokens) that Beefy builds off-chain. Reverts with Slippage if an output is below minOutputAmount.
write executeOrder(((address,uint256)[],uint256,uint256),((address,uint256)[],(address,uint256)[],(address,uint256,bytes),address,address),bytes,(address,uint256,bytes,(address,int32)[])[])
Zap with a signed Permit2 batch transfer. Arguments: PermitBatchTransferFrom (permitted tokens and amounts, nonce, deadline), the same Order, the user's EIP-712 signature over the order, and the route. A relayer can submit it for the user. The user must have approved Permit2 for the input tokens.
read tokenManager()
Address of the token manager that pulls user tokens. This is the address users approve for zaps.
read permit2()
Uniswap Permit2 contract the router uses for signed zaps.
read owner()
Owner of the router (Beefy keeper).
read paused()
True when zaps are paused. Check before building an order.
BeefyVaultV7Factory (fraxtal)factory on fraxtal0x91BB303E972995EbE5f593BCddBb6F5Ef49Dbcbd
read instance()
The BeefyVaultV7 implementation that clones copy. Read this to confirm the template before trusting a clone.
write cloneVault()
Deploy a new vault as a minimal proxy (EIP-1167 clone) of instance() and return its address. The factory code does not call an initializer on the clone.
write cloneContract(address)
Clone an arbitrary implementation address and return the clone. Emits ProxyCreated.
mooCurveFRAX-FXB_20291231 vault (id curve-fraxtal-fxb_20291231, active)vault on fraxtal0x39000468968Aca34C390f95C9f6bE7a19d79F732
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.
mooCurveWfrxETH-sfrxETH vault (id curve-fraxtal-sfrxeth, active)vault on fraxtal0xcb25214EC41Ea480068638897FcBd6F1206F5521
write deposit(uint256)
Deposit want tokens (the underlying LP or single asset from want()). Arguments: amount in the token's smallest unit. Approve the vault for the amount first. Mints mooToken shares to the caller.
write depositAll()
Deposit the caller's entire want balance. Approve the vault first.
write withdraw(uint256)
Burn mooToken shares and receive want back. Argument: shares (mooToken amount, 18 decimals), not want. Returned want = shares * getPricePerFullShare() / 1e18, minus anything lost in the strategy.
write withdrawAll()
Burn the caller's entire mooToken balance and receive the matching want.
read getPricePerFullShare()
Want per mooToken, scaled by 1e18. Rises as the strategy compounds rewards. Divide shares by 1e18 and multiply by this to get the position in want.
read balance()
Total want held by the vault plus the strategy (idle plus deployed).
read available()
Want sitting idle in the vault and not yet sent to the strategy.
read totalSupply()
Total mooToken shares issued (18 decimals).
read want()
The underlying token the vault accepts (LP token or single asset). Approve this token, not the mooToken.
read strategy()
Strategy contract currently used by the vault. Owner can change it through the proposeStrat and upgradeStrat flow.