Auto deleveraging
Auto-deleveraging is a type of last-resort liquidation in which a bankrupt trader's positions are closed directly against opposing traders' positions instead of the vAMM. Auto-deleveraging matches a bankrupt account's position against the opposing traders' position at the current mark price.
The liquidation engine maintains an ordered list of accounts that are candidates for deleveraging. The list is ordered by each trader's profitability and leverage; highly profitable and highly leveraged traders are deleveraged first.
Specifically,
profitability=collateralunrealized PnL, margin ratio=account valuemaintenance margin.
Accounts are ordered by profitability∗margin ratio in descending order.
Last updated