repay
Repay borrowed assets on the Tydro lending protocol. Use 'max' to clear full debt.
Instructions
Repay borrowed assets. Use amount "max" to repay the full debt. Requires PRIVATE_KEY env var.
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": {
"asset": "<asset>",
"amount": "<amount>"
},
"name": "repay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset symbol or address to repay | |
| amount | Yes | Amount to repay in human units, or "max" to repay full debt |