When user is liquidated his whole trading account is liquidated.
User may have multiple positions and some of them can be liquidatable some of them may not be, but since the margin is not liked to a position, and is linked to whole margin of the trading account.
User have 2 positions that are healthy and one that is short and accrue a lot bad PnL, with that all positions will be liquidated since marginBalanceUsdX18
of all will be less than requiredMaintenanceMarginUsdX18
.
Positions that are healthy in their terms will be liquidated if other positions are far below maintenance margin.
Manual Review
Consider to allow liquidating single positions not the whole trading account.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.