How Liquidations Work
A liquidation occurs when a trader’s account equity falls below the maintenance margin. The position is then closed via market order; partial fills depend on available liquidity. Liquidations use the mark price — Scape positions use the Scape relayer mark price, which is the median of the oracle, the basis-adjusted oracle, and the order-book median. Because Scape markets are isolated only, a liquidation is confined to the affected position and does not draw on collateral held against other markets.Computing Liquidation Price
The estimated liquidation price shown at entry may differ from the actual price as liquidity shifts. The formula is: wherel = 1 / maintenance_leverage and side is +1 for longs, −1 for shorts.