Margin Trading Liquidation - laminar-protocol/flow-protocol-ethereum GitHub Wiki
The liquidation contract handles all functions regarding liquidated traders and pools.
External Functions
closePositionForLiquidatedTrader
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.
closePositionForLiquidatedPool
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.
restoreTraderInPool
Restore a liquidated trader again after he closed all positions.
Full details can be seen at MarginFlowProtocolLiquidation.restoreTraderInPool.
restoreLiquidatedPool
Restore a liquidated pool again after all positions in it are closed.
Full details can be seen at MarginFlowProtocolLiquidation.restoreLiquidatedPool.