When a margin caller makes a liquidation transaction, WOWswap’s smart contract verifies whether the liquidation condition is satisfied, and, if so, proceeds with the liquidation. During the liquidation, all parties are paid according to the following order: