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

Lack of check for user input `_amount > 0`

Summary

Lack of check _amount > 0 for Staking.deposit(), Staking.withdraw(), Fees.sellProfits().

Vulnerability Details

Checking non-zero transfer values can avoid an expensive external call and save gas.

Impact

Expensive external useless calls.

Tools Used

Manual review

Recommendations

Add a non-zero-value check on the 3 functions.

Support

FAQs

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

Give us feedback!