factor_lend_repay
Repay borrowed assets on Aave, Compound V3, Morpho, or Silo V2 through a Factor vault; specify an amount, percentage, or "all" to clear the debt.
Instructions
Repay borrowed assets to a lending protocol (Aave, Compound V3, Morpho, or Silo V2) through a Factor vault. Use amount "all" to repay the entire debt.
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_repay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to repay in base units (wei), or "all" to repay the entire debt, or a percentage like "50%" to repay that percentage of the debt | |
| marketId | No | Morpho market ID (required for morpho) | |
| password | No | Wallet password if encrypted | |
| protocol | Yes | The lending protocol to repay to | |
| debtAddress | No | Token address of the debt to repay (required for aave, compoundV3, siloV2) | |
| vaultAddress | Yes | The vault contract address | |
| marketAddress | No | Market address (required for compoundV3 and siloV2) |