Liquidation Settlement
Handle Liquidation Timeout
Write off a liquidation that could not be settled within 7 days
POST
Writes off a liquidation the operator was unable to settle. The market clears the outstanding debt, draws on the insurance fund to cover it, and reconciles the pool’s liquidity. The record moves to
WRITTEN_OFF.
This is a loss-recognition step, not a recovery step. Use it when collateral proved unsellable within the window, or when a sale realised nothing.
Path Parameters
string
required
Liquidation ID on the market’s router. The market-local ID needed on-chain is resolved automatically.
Body Parameters
string
Names the market whose liquidation you mean. Every market runs its own liquidation router and IDs restart at
1 on each of them, so the same liquidationId can exist on several markets in one instance. Supply this when it does, otherwise the call is refused with AMBIGUOUS_LIQUIDATION_ID and the response lists the candidates.string
Hash of the transaction you broadcast for this operation. Send it to confirm the transaction and record the result. Omit it to receive the calldata.
Response Fields
object
The 7 Day Window
The clock starts when the router receives the collateral, which isonChainData.timestamp on Get Pending Liquidations. Calling before the window has elapsed is refused with LIQUIDATION_NOT_TIMED_OUT, and the error carries eligibleAt so the retry time is exact.
What the Write-Off Does
1
Close the pending liquidation
The market marks its pending liquidation settled so the debt stops counting against
pendingLiquidationDebt.2
Draw on the insurance fund
The outstanding debt is presented to the market’s insurance fund, which covers as much as its balance allows.
3
Reconcile the pool
Any shortfall between the covered amount and the principal is deducted from pool liquidity. Liquidity providers absorb what the insurance fund could not.
