The rounding up for the multiplication of two numbers is done before the multiplication, which will produce invalid output.
The function is used to calculate the multiplication of two numbers and round up the result. If the result is not rounded up correctly, it means it will produce invalid result, therefore affecting thr protocols and contracts expecting a correct result.
The impact is high, as invalid outputs may affect the protocols and contracts. One example may be that the protocol is expecting a certain amount of tokens to be minted, but the result is not rounded up correctly, therefore the amount of tokens minted is not correct and it would hurt the protocol in a long run.
Foundry fuzz tests
The rounding up should be done after the the multiplication.
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.