Use == instead of <= to save gas in the mint
and burn
function.
The mint
and burn
functions check for _amount <= 0
. However, the variable _amount
is already uint
, so it can never be negative. So, checking for _amount == 0
is equivalent to checking _amount <= 0
but with cheaper gas.
More gas used unnecessarily.
Manual Review
Use ==
instead of <=
check.
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.