20,000 USDC
View results
Submission Details
Severity: low
Valid

[L-05]Multiple functions should not work with amount = 0

Summary

There are many functions that lack verification that the amount is greater than 0
Affected functions:

  • Beedle.sol/mint

  • Fees.sol/sellProfits

  • Staking.sol/deposit

  • Staking.sol/withdraw

Impact

Loss of gas

Tools Used

Manual code review

Recommendations

Add a statement that checks that amount != 0

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.