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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| priceE8 | Yes | ||
| debtLeusd | Yes | ||
| borrowLtvBps | Yes | ||
| collateralRaw | Yes | ||
| collateralDecimals | Yes |