Liquidation Process
Last updated
Last updated
Liquidation is a crucial aspect of trading platforms offering leverage, ensuring no trader's loss exceeds the margin (or collateral) posted to their position. This document provides an overview of the liquidation process on Bluefin, including the liquidation price and liquidation premium calculations.
When a trader's margin posted is insufficient for their Margin Ratio (MR) to be above the Maintenance Margin Ratio (MMR), their position becomes eligible for liquidation. Liquidation workers, who are third parties running Bluefin's open-source liquidation worker script, can then proceed to liquidate the position. The liquidation price is displayed in the positions tab, and traders are advised to add margin or lower their leverage to avoid liquidation.
The liquidation price is the price at which the MR equals the MMR. It can be calculated using the following formulas:
The bankruptcy price is the price at which the MR becomes zero, and the unrealized loss equals the position margin. It can be calculated using the Liquidation Price formula with the MMR set to 0. If a user is liquidated beyond the bankruptcy price, the exchange incurs a capital drawdown, which is compensated for by the insurance fund.
The liquidation premium is the equity leftover at liquidation, used to compensate the liquidator and replenish the insurance fund. It is calculated differently for Long and Short positions:
where,
If Liquidation Premium > 0, it means that the liquidatee’s position is not bankrupt, with MR > 0.
Then, 30% of the Liquidation Premium flows to the Insurance Fund, and 70% flows to the liquidator:
where,
If Liquidation Premium ≤ 0, it means the liquidatee’s position is underwater (bankrupt) with MR ≤ 0.
Then, to keep the exchange capitalized and solvent, the insurance fund provides for the negative equity of the liquidation:
The liquidation process on Bluefin is designed to protect the platform and its users from the risk of systemic bankruptcy. By calculating liquidation prices, and premiums, and utilizing the insurance fund, Bluefin ensures that no trader's loss exceeds the margin posted to their position. Traders are advised to monitor their positions and take appropriate actions to avoid liquidation.
If Liquidation Premium > 0 (MR > 0): 30% goes to the Insurance Fund, and 70% goes back to the liquidator. Hence, all positive-value liquidations partly capitalize the Insurance Fund.
If Liquidation Premium ≤ 0 (MR ≤ 0): The entire negative Liquidation Premium is compensated by the insurance fund.
is the position size,
and is the oracle price at the time of the liquidation.