Gearbox on Ethereum
Action: deposit
Parameters
| Name | Type | Description |
|---|---|---|
targets | string[] (required) | Vault IDs |
VAULT below refers to the specific vault corresponding to each vault ID 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- receiverequal to AVATAR
VAULT · depositWithReferral
Deposit VAULT.ASSET tokens to the vault with referral and receive vault shares in exchange.
-
Contract:
VAULT -
Function:
depositWithReferral(uint256,address,uint256)Parameter Constraint assets- receiverequal to AVATARreferralCode-
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 AVATARownerequal to AVATAR
VAULT · redeem
Redeem vault shares to receive VAULT.ASSET tokens.
-
Contract:
VAULT -
Function:
redeem(uint256,address,address)Parameter Constraint shares- receiverequal to AVATARownerequal to AVATAR