withdraw
may change things: you confirm before it runsWithdraw funds from a vault. The user can specify any token he wants to receive after withdrawal and it will be automatically swapped. Use this method only for vaults, not CLM pools.
Input schema
{
"type": "object",
"properties": {
"chainName": {
"type": "string",
"enum": [
"ethereum",
"optimism",
"bsc",
"base",
"avalanche",
"arbitrum",
"sonic",
"hyperevm",
"plasma",
"monad",
"robinhood",
"arc"
],
"description": "Chain name"
},
"vaultIdOrName": {
"type": "string",
"description": "ID or name of the vault"
},
"tokenOutAddress": {
"description": "The address of any token the user wants to receive after withdrawing from the vault. If not specified, withdraws to the underlying token in the vault.",
"type": "string"
},
"amountInPercentage": {
"type": "string",
"description": "Amount of shares in the vault to withdraw in percentage between 0 and 100. Pass -1 to withdraw all."
},
"userAddress": {
"type": "string",
"description": "The EVM wallet address of the user."
}
},
"required": [
"chainName",
"vaultIdOrName",
"amountInPercentage",
"userAddress"
],
"additionalProperties": false
}