Liquidated positions may still have orders in the current protocol
marketOrder.clear()
is not called when position is liquidated. Chainlink Automation will still execute the transaction. If there is still a small amount of margin in the user's account at this point, the order will bypass the creation check and execute the wrong trade instead
Likelihood: LOW
+
Impact: LOW
=
Severity: LOW
Manual review
Clear active pending orders after liquidation.
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.