get_moolah_liquidation_quote
Estimate the loan token cost required to liquidate a position on JustLend DAO. Provide collateral to seize or borrow shares to repay, and get the exact repayment amount.
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. |