No check for parameter _amount
zero is done at some places.
In Beedle.sol
s functions mint
, _burn
, _mint
, the check for _amount
zero is not done. That means users will be able to run the functions passing _amount
as zero.
In Staking.sol
s functions deposit
and withdraw
the check for _amount
zero is not done as well.
There are five instances of this in the contract:
[1]
[2]
[3]
[4]
[5]
example: [example]
Users will be able to run the functions successfully and no there would be unnecessary gas cost. And also state update will cost gas.
Manual Inspection, Foundry tests
Consider checking if _amount
is zero or not in the beginning of the function.
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.