Function checkLiquidatableAccounts does not account for liquidation fees, resulting in unexecpted results
The function checkLiquidatableAccounts checks if an account can be liquidated shown here.
It does the calculation the check like this
However, this is incorrect as the liquidation formula accounts for the liquidation fee
https://docs.zaros.fi/overview/products/perpetuals-dex/liquidation
isLiquidatable={requiredMM+liquidationFeeUsd≥marginBalanceUsd
This means that in some instances the function can reflect an account that is safe when it really is not
The function can return the wrong information which can mislead users
Manual Review
Add the liquidation fee in checkLiquidatableAccounts
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.