factor_lend_withdraw
Withdraw supplied assets from Aave, Compound V3, Morpho, or Silo V2 via a Factor vault. Specify amount as 'all', a percentage, or base units; for Morpho, set collateral=true for collateral.
Instructions
Withdraw supplied assets from a lending protocol (Aave, Compound V3, Morpho, or Silo V2) through a Factor vault. Use amount "all" to withdraw the entire supplied balance. For Morpho, set collateral=true to withdraw collateral.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"vaultAddress": "<vaultAddress>",
"protocol": "<protocol>",
"amount": "<amount>"
},
"name": "factor_lend_withdraw"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in base units (wei), or "all" to withdraw the entire supplied balance, or a percentage like "50%" to withdraw that percentage of the supplied balance | |
| marketId | No | Morpho market ID (required for morpho) | |
| password | No | Wallet password if encrypted | |
| protocol | Yes | The lending protocol to withdraw from | |
| collateral | No | For Morpho: withdraw collateral instead of supplied assets. Default: false | |
| assetAddress | No | Token address to withdraw (required for aave, compoundV3, siloV2) | |
| vaultAddress | Yes | The vault contract address | |
| marketAddress | No | Compound V3 market address (required for compoundV3) |