When calculating reserve, it is being rounded up instead of it being rounded down
In the calcReserve function, reserve is rounded up. Here:
reserve = LibMath.roundUpDiv(reserve, reserves[j == 1 ? 0 : 1] * EXP_PRECISION);
The use of roundUpDiv function rounds up rather than down. Rounding up would not give the accurate figure in a reserve, but a false figure.
The reserve would be have a false high amount than what it actually holds
Manual review
Round down rather than up.
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.