When users want to get their mint amounts and are inputing their details, they may unknowingly input a _factor.numerator
that may be greater than its denominator, which is against the intended design of the contract.
[more info in Vulnerability Details and Impact]
The actual _getMintAmount
is a private function that is callable by other functions in the contract. In the instant case, the getMintAmount
function calls it.
A user can use it to get their own mint amounts.
However, there will be an error where the user sets the numerator of their _factor
to be greater than its numerator. which will be an invalid parameter.
Invalid parameter, and the function will not return.
Manual review.
This error can be added: if (_factor.numerator > _factor.denominator) { revert CommonEventsAndErrors.InvalidParam(); }
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.