The mulWadUp is an internal function that is the equivalent of calculating (x * y) / WAD
rounded down.
The mulWadUp function gives the accurate result in most cases but upon running fuzzing on it, i discovered that the value 3323484123583475243233908 and 1661742061791737621616955 causes the function to fail as the results gives a value higher that the expected result. This brings me to the conclusion that the function is not predictable and can result in giving more value than it should when used for calculation.
The function can lead to loss of funds if used in defi contract as it is giving out more value than it should and this can lead to users losing their funds.
Foundry
The mulWadUp should be modified to work as designed
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.