BTB
/

Harvest Finance

Yield Aggregatorwebsite
Yield vaults run by Harvest. Autopilot vaults on Base are ERC-4626 vaults: deposit USDC, WETH, EURC or cbBTC, and Harvest allocates across yield markets. Withdraw or redeem shares at any time, subject to available liquidity.

What you can do

depositDeposit an asset into an Autopilot vaultapprove the vault for asset() by the amount, then deposit(amount, you). Receive vault shares (balanceOf).
withdrawWithdraw by amount or exit fullywithdraw(assets, you, you) for an amount, or redeem(shares, you, you) for all shares (shares = balanceOf(you)). Check maxWithdraw(you) or maxRedeem(you) first.
check-positionValue a position in the assetconvertToAssets(balanceOf(you)) gives the underlying amount, using the vault's own decimals for the shares.
previewPreview a deposit or exit before sendingpreviewDeposit(assets), previewRedeem(shares) or previewWithdraw(assets) return the expected amounts at the current price.
Harvest's manager allocates vault funds across lending and yield markets with execute(). Losses or failures in those markets reduce the share price.
Withdrawals are limited by liquidity in the allocations. Check maxWithdraw and maxRedeem, since a large exit can be partly blocked.
Share decimals differ from the asset decimals (for example 8 share decimals for USDC). Always use decimals() and convertToAssets rather than assuming a 1:1 ratio.
The API endpoints need a key issued by Harvest, and the vault set can change. Read the current vault list from the app's source or the API before depositing.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
Autopilot USDC vault (bAutopilot_USDC)vault on base0x0d877Dc7C8Fa3aD980DfDb18B48eC9F8768359C4
write deposit(uint256,address)
ERC-4626 deposit. Arguments: assets (amount of the underlying asset in its smallest unit), receiver (gets the shares). Approve the vault for the asset amount first. Returns shares minted.
write mint(uint256,address)
ERC-4626 mint. Arguments: shares to mint, receiver. Pulls the matching asset amount. Approve the vault for enough asset first (use previewMint-style math or convertToAssets).
write withdraw(uint256,address,address)
ERC-4626 withdraw by asset amount. Arguments: assets to withdraw, receiver, owner (the account whose shares are burned; the caller must be the owner or approved). Limited by maxWithdraw.
write redeem(uint256,address,address)
ERC-4626 redeem by share amount. Arguments: shares to burn, receiver, owner. Limited by maxRedeem. Use this to exit the whole position (shares = balanceOf).
read asset()
The underlying token the vault accepts (USDC, WETH, EURC or cbBTC on Base). Approve this token, not the vault shares.
read totalAssets()
Total underlying held by the vault across its allocations.
read convertToAssets(uint256)
Underlying value of a share amount at the current price.
read convertToShares(uint256)
Shares worth a given underlying amount at the current price.
read previewDeposit(uint256)
Shares a deposit of the given assets would mint now.
read previewRedeem(uint256)
Assets a redemption of the given shares would return now.
read previewWithdraw(uint256)
Shares that would be burned to withdraw the given assets now.
read maxWithdraw(address)
Most underlying the owner can withdraw right now (limited by liquidity in the allocations).
read maxRedeem(address)
Most shares the owner can redeem right now.
read decimals()
Share decimals. Different from the asset (USDC vault shares have 8 decimals, WETH 20, cbBTC 10, EURC 8).
write execute((address,bytes)[])
Run a batch of calls on the vault's allocations. Used by Harvest's vault manager to rebalance between protocols. Not a user function.
Autopilot WETH vault (bAutopilot_wETH)vault on base0x7872893e528Fe2c0829e405960db5B742112aa97
write deposit(uint256,address)
ERC-4626 deposit. Arguments: assets (amount of the underlying asset in its smallest unit), receiver (gets the shares). Approve the vault for the asset amount first. Returns shares minted.
write mint(uint256,address)
ERC-4626 mint. Arguments: shares to mint, receiver. Pulls the matching asset amount. Approve the vault for enough asset first (use previewMint-style math or convertToAssets).
write withdraw(uint256,address,address)
ERC-4626 withdraw by asset amount. Arguments: assets to withdraw, receiver, owner (the account whose shares are burned; the caller must be the owner or approved). Limited by maxWithdraw.
write redeem(uint256,address,address)
ERC-4626 redeem by share amount. Arguments: shares to burn, receiver, owner. Limited by maxRedeem. Use this to exit the whole position (shares = balanceOf).
read asset()
The underlying token the vault accepts (USDC, WETH, EURC or cbBTC on Base). Approve this token, not the vault shares.
read totalAssets()
Total underlying held by the vault across its allocations.
read convertToAssets(uint256)
Underlying value of a share amount at the current price.
read convertToShares(uint256)
Shares worth a given underlying amount at the current price.
read previewDeposit(uint256)
Shares a deposit of the given assets would mint now.
read previewRedeem(uint256)
Assets a redemption of the given shares would return now.
read previewWithdraw(uint256)
Shares that would be burned to withdraw the given assets now.
read maxWithdraw(address)
Most underlying the owner can withdraw right now (limited by liquidity in the allocations).
read maxRedeem(address)
Most shares the owner can redeem right now.
read decimals()
Share decimals. Different from the asset (USDC vault shares have 8 decimals, WETH 20, cbBTC 10, EURC 8).
write execute((address,bytes)[])
Run a batch of calls on the vault's allocations. Used by Harvest's vault manager to rebalance between protocols. Not a user function.
Autopilot EURC vault (bAutopilot_EURC)vault on base0x180493090667A35D8511Be743835dAD8715d33be
write deposit(uint256,address)
ERC-4626 deposit. Arguments: assets (amount of the underlying asset in its smallest unit), receiver (gets the shares). Approve the vault for the asset amount first. Returns shares minted.
write mint(uint256,address)
ERC-4626 mint. Arguments: shares to mint, receiver. Pulls the matching asset amount. Approve the vault for enough asset first (use previewMint-style math or convertToAssets).
write withdraw(uint256,address,address)
ERC-4626 withdraw by asset amount. Arguments: assets to withdraw, receiver, owner (the account whose shares are burned; the caller must be the owner or approved). Limited by maxWithdraw.
write redeem(uint256,address,address)
ERC-4626 redeem by share amount. Arguments: shares to burn, receiver, owner. Limited by maxRedeem. Use this to exit the whole position (shares = balanceOf).
read asset()
The underlying token the vault accepts (USDC, WETH, EURC or cbBTC on Base). Approve this token, not the vault shares.
read totalAssets()
Total underlying held by the vault across its allocations.
read convertToAssets(uint256)
Underlying value of a share amount at the current price.
read convertToShares(uint256)
Shares worth a given underlying amount at the current price.
read previewDeposit(uint256)
Shares a deposit of the given assets would mint now.
read previewRedeem(uint256)
Assets a redemption of the given shares would return now.
read previewWithdraw(uint256)
Shares that would be burned to withdraw the given assets now.
read maxWithdraw(address)
Most underlying the owner can withdraw right now (limited by liquidity in the allocations).
read maxRedeem(address)
Most shares the owner can redeem right now.
read decimals()
Share decimals. Different from the asset (USDC vault shares have 8 decimals, WETH 20, cbBTC 10, EURC 8).
write execute((address,bytes)[])
Run a batch of calls on the vault's allocations. Used by Harvest's vault manager to rebalance between protocols. Not a user function.
Autopilot cbBTC vault (bAutopilot_cbBTC)vault on base0x31A421271414641cb5063B71594b642D2666dB6B
write deposit(uint256,address)
ERC-4626 deposit. Arguments: assets (amount of the underlying asset in its smallest unit), receiver (gets the shares). Approve the vault for the asset amount first. Returns shares minted.
write mint(uint256,address)
ERC-4626 mint. Arguments: shares to mint, receiver. Pulls the matching asset amount. Approve the vault for enough asset first (use previewMint-style math or convertToAssets).
write withdraw(uint256,address,address)
ERC-4626 withdraw by asset amount. Arguments: assets to withdraw, receiver, owner (the account whose shares are burned; the caller must be the owner or approved). Limited by maxWithdraw.
write redeem(uint256,address,address)
ERC-4626 redeem by share amount. Arguments: shares to burn, receiver, owner. Limited by maxRedeem. Use this to exit the whole position (shares = balanceOf).
read asset()
The underlying token the vault accepts (USDC, WETH, EURC or cbBTC on Base). Approve this token, not the vault shares.
read totalAssets()
Total underlying held by the vault across its allocations.
read convertToAssets(uint256)
Underlying value of a share amount at the current price.
read convertToShares(uint256)
Shares worth a given underlying amount at the current price.
read previewDeposit(uint256)
Shares a deposit of the given assets would mint now.
read previewRedeem(uint256)
Assets a redemption of the given shares would return now.
read previewWithdraw(uint256)
Shares that would be burned to withdraw the given assets now.
read maxWithdraw(address)
Most underlying the owner can withdraw right now (limited by liquidity in the allocations).
read maxRedeem(address)
Most shares the owner can redeem right now.
read decimals()
Share decimals. Different from the asset (USDC vault shares have 8 decimals, WETH 20, cbBTC 10, EURC 8).
write execute((address,bytes)[])
Run a batch of calls on the vault's allocations. Used by Harvest's vault manager to rebalance between protocols. Not a user function.