Skip to main content

Module liquidation

Module liquidation 

Source
Expand description

Liquidation state, history, and auction types.

Covers the full lifecycle: Healthy -> PreLiquidation -> InLiquidation -> Liquidated, with auction records and bonus application results.

Structs§

LiquidationAuctionRecord
On-chain liquidation auction record.
LiquidationAuctionUpdate
Partial update for LiquidationAuctionRecord. Fields set to None are left unchanged in the DB.
LiquidationBonusApplyResult
Result of applying a liquidation bonus to the winner’s account.
LiquidationHistoryRecord
Audit trail entry for a liquidation state transition.
LiquidationStateRecord
Current liquidation state for a wallet. One row per wallet, upserted on every state transition.