Function roundUpDiv()
does not check for a possible zero denominator
The internal roundUpDiv()
function does not check if the denominator b
is zero. The function will revert in the case of a possible zero denominator before rounding it up, thus breaking its intended logic. Calling functions likeroundUpDiv()
from another contract should never revert.
Reverting in the case of a possible zero denominator, breaking the logic
Manual Review
Consider checking the denominator to not be zero:
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.