Quote repay
quote_repayQuote repaying debt. 'auto' repays from collateral via a flash-loan swap and requires slippage; 'manual' repays from the wallet. Returns a quote envelope; expiresAt is unix ms and quotes expire after 180 seconds. Amounts are base-unit integer strings.
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": {
"chainId": "<chainId>",
"positionAddress": "<positionAddress>",
"strategyId": "<strategyId>",
"mode": "<mode>",
"repayAmount": "<repayAmount>"
},
"name": "quote_repay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| chainId | Yes | EVM chain id | |
| slippage | No | Slippage tolerance as a decimal: 0.005 means 0.5% (not 1e18 fixed-point) | |
| strategyId | Yes | Strategy id from list_strategies (`strategyId`) | |
| repayAmount | Yes | ||
| withdrawAmount | No | 'auto' only | |
| positionAddress | Yes | Position (vault) address |