DeFiFoundry
60,000 USDC
View results
Submission Details
Severity: low
Invalid

Liquidation does not clear pending orders

Summary

Liquidated positions may still have orders in the current protocol

Vulnerability Details

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

Impact

Likelihood: LOW

+

Impact: LOW

=

Severity: LOW

Tools Used

Manual review

Recommendations

Clear active pending orders after liquidation.

Updates

Lead Judging Commences

inallhonesty Lead Judge
11 months ago
inallhonesty Lead Judge
11 months ago
inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Appeal created

Oblivionis Submitter
10 months ago
inallhonesty Lead Judge
10 months ago
inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.