The isLiquidatable
function currently checks if an account is liquidatable by comparing the required maintenance margin against the margin balance. However, it does not account for the liquidation fee, which should be included in the calculation to ensure accurate assessment.
From the docs the formula is
Omitting the liquidation fee may lead to incorrect determination of liquidatable accounts, potentially causing accounts to remain open when they should be liquidated, or vice versa.
Manual review
Add liquidationUsd
to isLiquitable()
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.