Lends Math Withdrawable Collateral
lends_math_withdrawable_collateralDetermine the maximum raw collateral withdrawable while keeping the borrow loan-to-value ratio within safety limits.
Instructions
Calculate maximum raw collateral withdrawal while retaining borrow-LTV safety.
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": {
"collateralRaw": "<collateralRaw>",
"debtLeusd": "<debtLeusd>",
"collateralDecimals": "<collateralDecimals>",
"priceE8": "<priceE8>",
"borrowLtvBps": "<borrowLtvBps>"
},
"name": "lends_math_withdrawable_collateral"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| priceE8 | Yes | ||
| debtLeusd | Yes | ||
| borrowLtvBps | Yes | ||
| collateralRaw | Yes | ||
| collateralDecimals | Yes |