The closeLiquidation
function's debt threshold check uses >
instead of >=
, allowing liquidation closure when debt equals the dust threshold.
Current implementation:
This allows liquidation closure when userDebt == DUST_THRESHOLD
, potentially leaving residual debt.
Possible premature liquidation closure with remaining debt
Financial accounting inconsistencies
Manual code review
Static analysis
Update threshold check:
Add comprehensive testing for threshold edge cases
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.