Lends Math Liquidation Price
lends_math_liquidation_priceCompute the 8-decimal liquidation price from collateral, debt, decimals, and threshold; returns null when debt or collateral is absent.
Instructions
Calculate the 8-decimal liquidation price; returns null without debt or 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": {
"collateralRaw": "<collateralRaw>",
"debtLeusd": "<debtLeusd>",
"collateralDecimals": "<collateralDecimals>",
"liquidationThresholdBps": "<liquidationThresholdBps>"
},
"name": "lends_math_liquidation_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debtLeusd | Yes | ||
| collateralRaw | Yes | ||
| collateralDecimals | Yes | ||
| liquidationThresholdBps | Yes |