Liquidation System
The Symmio Options Protocol has a liquidation system that manages counterparty risk and keeps the protocol solvent. Liquidations are orchestrated by the Symmio Clearing House, the protocol's enforcement and settlement authority.
Liquidation workflow
Liquidation has three core stages.
Step 1: flagging
The Clearing House can flag accounts that look insolvent based on external solvency checks.
Flagging creates a
LiquidationDetailentry with statusFLAGGED.There are distinct flagging functions for different margin types (isolated, cross) and parties (PartyA or PartyB).
Once flagged, the account enters a grace period in which it can recover solvency before liquidation is enforced.
Step 2: liquidation execution
After the grace period, if the account is still insolvent, the Clearing House can execute the liquidation.
On execution, the status moves from
FLAGGEDtoIN_PROGRESS.The collateral price and unrealized PnL (UPNL) at liquidation time are recorded to determine accurate settlement amounts.
Relevant cross-margin balances are zeroed out and redistributed or seized as required.
Step 3: cancel intents, close trades, and adjust balances
The Clearing House finalizes balance adjustments for all affected parties.
Some balance changes may already happen in Step 2 (for example, during cross balance resets); this step makes sure all final deltas are applied.
The liquidated party must not keep any open intents or open trades, so the Clearing House forcibly cancels remaining intents and closes all active trades for the liquidated party. This guarantees a clean state.
Liquidation states
FLAGGED
Account flagged as insolvent
Execute liquidation, or unflag if recovered
IN_PROGRESS
Liquidation actively being processed
Close trades, confiscate assets, distribute collateral
CANCELLED
Flagged liquidation cancelled due to recovery
Return to normal operation
Liquidation types
1. Isolated PartyB liquidation
Used when PartyB becomes insolvent in isolated margin mode, where PartyA buys an option from PartyB:
Trigger conditions:
The total loss of open positions exceeds the loss coverage of the isolated balance.
isolatedBalance + (effectiveUpnl * 1e18) / collateralPrice < 0where
effectiveUpnl = upnl > 0 ? upnl : (upnl * lossCoverage) / 1e18This liquidation function makes no balance changes.
2. Cross PartyB liquidation
Used when PartyB becomes insolvent in cross margin mode:
Trigger conditions:
PartyB's cross loss of open trades with a specific PartyA exceeds the loss coverage of the cross balance.
crossBalance.balance + (effectiveUpnl * 1e18) / collateralPrice < 0where
effectiveUpnl = upnl > 0 ? upnl : (upnl * lossCoverage) / 1e18
Liquidation process:
Remaining cross balance is transferred to PartyA via scheduled release.
All cross margin entries (balance, locked, totalMM) reset to zero.
Liquidation status advances to
IN_PROGRESS.
3. Cross PartyA liquidation
Used when PartyA becomes insolvent in cross margin mode:
Trigger conditions:
(crossBalance.balance - totalMM) + (upnl * 1e18) / collateralPrice < 0PartyA's available balance is insufficient to cover maintenance margin plus losses.
Liquidation process:
Remaining cross balance is transferred to PartyB via scheduled release.
All cross margin entries reset to zero.
Liquidation proceeds to the position-closure phase.
Clearing House operations
The Clearing House also has shared methods for closing, cancelling, and changing balances.
Trade closure during liquidation
All specified trades must belong to the liquidated parties.
Trades are closed at liquidator-provided prices.
Trade status changes to
LIQUIDATED.Associated close intents are cancelled.
Asset confiscation
PartyA confiscation: removes a specified amount from PartyA's cross balance to cover liquidation costs and losses; requires sufficient available balance.
PartyB withdrawal confiscation: cancels pending PartyB withdrawals during liquidation and returns the withdrawn amount to PartyB's isolated balance, preventing capital flight during the process.
Collateral distribution
Distributes PartyB's remaining collateral among affected PartyA accounts.
Uses the scheduled-release system for secure transfers.
Distributes proportionally based on losses and exposure.
Ensures the total distribution doesn't exceed the available balance.
Intent cancellation during liquidation
Only cancels intents involving insolvent parties.
Handles fees and premium refunds appropriately.
Expired intents go through the normal expiration flow.
Prevents further trading by liquidated accounts.
Last updated

