-
Notifications
You must be signed in to change notification settings - Fork 1
Margin Trading Liquidation
The liquidation contract handles all functions regarding liquidated traders and pools.
Close a position for a liquidated trader. It uses the market prices at the time of liquidation.
Full details can be seen at MarginFlowProtocolLiquidation.closePositionForLiquidatedTrader.
Close a position for a liquidated pool. It uses the market prices at the time of liquidation. A trader should close his profit positions first to get the maximum money (in case there are funds leftover).
Full details can be seen at MarginFlowProtocolLiquidation.closePositionForLiquidatedPool.
Restore a liquidated trader again after he closed all positions.
Full details can be seen at MarginFlowProtocolLiquidation.restoreTraderInPool.
Restore a liquidated pool again after all positions in it are closed.
Full details can be seen at MarginFlowProtocolLiquidation.restoreLiquidatedPool.