Raisebox Faucet

First Flight #50
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

Unused Error Declaration in Contract.


Description

  • The error RaiseBoxFaucet_CannotClaimAnymoreFaucetToday() is intended to revert transactions when a user exceeds their daily claim limit.


  • The issue is that this error is defined but never referenced or triggered anywhere in the claimFaucetTokens function or other contract logic, resulting in unnecessary gas costs for deployment and storage.

Risk

Likelihood:

  • During contract deployment

With each contract upgrade or redeployment

Impact:

  • Increases Deployment gas cost.

  • Wastes storage space without functional beneift.

Recommended Mitigation

- error RaiseBoxFaucet_CannotClaimAnymoreFaucetToday();
Updates

Lead Judging Commences

inallhonesty Lead Judge 10 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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