get_moolah_liquidation_quote
Estimate the exact loan token cost to liquidate a position by specifying either the collateral to seize or the borrow shares to repay.
Instructions
Estimate the loan token cost to liquidate a position. Provide either seizedAssets (collateral to take) OR repaidShares (borrow shares to repay), not both. Returns the exact loan token amount needed. Use this before calling moolah_liquidate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network. Default: mainnet | |
| marketId | Yes | Market ID (bytes32 hex) | |
| repaidShares | No | Borrow shares to repay (raw units). Provide this OR seizedAssets. | |
| seizedAssets | No | Collateral amount to seize (raw units). Provide this OR repaidShares. |