The `LibRedundantMathSigned128::sub()` function is supposed to revert when there is an overflow or an underflow and also when a negative number is returned. But currently when a negative number is returned the function does not revert and returns the negative number.
Executing this piece of code on (https://remix.ethereum.org/) with the example values of a=10 and b=20 will not cause an error, even though 10-20=-10 returned a negative value.
Negative values will be returned where either a revert or a positive value was expected.
remix.ethereum.org
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.