Morpho Vaults on Ethereum

Action: deposit

Parameters

NameTypeDescription
targetsstring[] (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)

    ParameterConstraint
    spenderequal to VAULT
    amount-

VAULT · deposit

Deposit VAULT.ASSET tokens to the vault and receive vault shares in exchange.

  • Contract: VAULT

  • Function: deposit(uint256,address)

    ParameterConstraint
    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)

    ParameterConstraint
    assets-
    receiverequal to AVATAR
    onBehalfequal to AVATAR

VAULT · redeem

Redeem vault shares to receive VAULT.ASSET tokens.

  • Contract: VAULT

  • Function: redeem(uint256,address,address)

    ParameterConstraint
    shares-
    receiverequal to AVATAR
    onBehalfequal to AVATAR