moolah_liquidate
Liquidate an undercollateralized Moolah position. Hold the loan token and have approved it; use get_moolah_liquidation_quote first to estimate the required loan token amount.
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.
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": {
"marketId": "<marketId>",
"borrower": "<borrower>"
},
"name": "moolah_liquidate"
}
}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. |