moolah_liquidate
Liquidate an undercollateralized Moolah position by providing either seized assets or repaid shares. First obtain a liquidation quote to estimate required loan tokens.
Instructions
Liquidate an undercollateralized Moolah position. You must hold the loan token and have approved it via approve_liquidator_token. Provide EITHER seizedAssets (collateral to seize) OR repaidShares (borrow shares to repay), not both. Use get_moolah_liquidation_quote first to estimate the required loan token amount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Network. Default: mainnet | |
| borrower | Yes | Address of the borrower to liquidate (Base58) | |
| marketId | Yes | Market ID (bytes32 hex) | |
| repaidShares | No | Borrow shares to repay (raw). Provide this OR seizedAssets. | |
| seizedAssets | No | Collateral units to seize (raw). Provide this OR repaidShares. |