Incorrect revert error returned
The contract uses custom error used for revert statements. The function mulWad
wants return the custom error MathMasters__MulWadFailed
by using the selector 0xbac65e5b
. The issue is, this is the selector for error MulWadFailed()
from the Solady lib, but the selector for MathMasters__MulWadFailed
is actually 0xa56044f7
.
Medium impact, but off chain won't be able to decode and display the correct error, as the library does not have this selector.
Manual review, foundry (cast).
Use the correct selector 0xa56044f7
to return MathMasters__MulWadFailed
error.
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.