Currently the risk engine works like this. If a position gets liquidated then the risk engine tries to:
  1. Find another person in the market to take on the position (best case scenario).
  2. If there is no one that takes on the position at the liquidation price or better then the insurance fund will pay for the difference.
  3. If the insurance funds is depleted and no other person is in the market then automatic deleveraging takes place. This means that positions of winners are force closed (worst case scenario).