This function works only for first batch of users, and it would be reverted if called for any other
The size of the output array is calculated based on the parameters provided. While the iteration ends at UpperBound, if the lower bound is greater than 0, you may end up trying to access the array beyond its bounds
For following parameters this function would fail
lowerBound = 20
upperBound = 30
because the function may try to access the element at position 20 while the array size is only 10.
Administrator would be able to get only first batch of account for liqudations.
Manual Review
This loop should start iterating from 0 and stop and the length of the array, while tradingAccountIndex should be lowerBound + i
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.