Liquidation
Last updated
Last updated
Liquidations on Defx serve a crucial role in maintaining the stability and fairness of the trading environment. They prevent systemic risk by ensuring that all positions are adequately funded, thus safeguarding the exchange's solvency and protecting users from potential disruptions in volatile markets.
Defx's liquidation process automatically terminates leveraged positions if a trader's margin fails to meet the necessary maintenance margin, preventing their positions from reaching bankruptcy. The specific maintenance margins required are outlined in the "Maintenance Margin Requirements" section of our documentation. These requirements vary by contract, as detailed in the "Contract Specifications."
Liquidation is triggered when the mark price, as determined by the third-party oracle Stork, reaches the designated liquidation price for a position. Defx provides a visible liquidation price to traders at position initiation and throughout the duration of the position. As a position nears its liquidation price, Defx issues margin calls, advising traders to increase their margin by adding funds, thus avoiding liquidation.
In the event that a position's margin falls to the maintenance margin level, Defx's liquidation engine automatically intervenes to assume control of the loss-making position. The primary function of the liquidation engine is to try to close the position at a predetermined liquidation price, calculated according to the following formula: