Morpho Vaults on Base
Action: deposit
Parameters
| Name | Type | Description |
|---|---|---|
targets | string[] (required) | Vault IDs | Vault names | Vault symbols |
VAULT below refers to the specific vault corresponding to each vault ID, name, or symbol provided in targets.
For each vault identifier provided in targets, the following functions are allowed:
VAULT.ASSET · approve
Approve the vault to spend VAULT.ASSET tokens on behalf of the avatar.
-
Contract:
VAULT.ASSET -
Function:
approve(address,uint256)Parameter Constraint spenderequal to VAULTamount-
VAULT · deposit
Deposit VAULT.ASSET tokens to the vault and receive vault shares in exchange.
-
Contract:
VAULT -
Function:
deposit(uint256,address)Parameter Constraint assets- onBehalfequal to AVATAR
VAULT · withdraw
Withdraw VAULT.ASSET tokens from the vault by specifying the desired asset amount.
-
Contract:
VAULT -
Function:
withdraw(uint256,address,address)Parameter Constraint assets- receiverequal to AVATARonBehalfequal to AVATAR
VAULT · redeem
Redeem vault shares to receive VAULT.ASSET tokens.
-
Contract:
VAULT -
Function:
redeem(uint256,address,address)Parameter Constraint shares- receiverequal to AVATARonBehalfequal to AVATAR