the checkLiquitableAccounts will always revert if the lowerbound is any value other than zero. Meanwhile the lowerBound should be any value between zero and the upperbound.
when accounts reaches liquidation.
and you try to get the checkLiquidatableAccounts.
the upperbound and lowerbound allows you to specify the section of ActiveMarketIds to check.
But this function fails when any other lowerbound is used aside 0.
Add this checkLiquitableAccounts.t.sol and run forge test --mc CheckLiquidatableAccounts_Integration_Test --mt test_WhenLowerBoundisNotZero -vvvv
This could lead to accounts not being able to be liquidated that's not in the range of lowerbound of 0.
Manual Review
checkLiquidatableAccount function should be reveiwed and the array be better handled
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.