Raisebox Faucet

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

Unused error `RaiseBoxFaucet_CannotClaimAnymoreFaucetToday()`

Author Revealed upon completion

Description:
The custom error is declared but never used. The code that enforces per-day token claim limits actually reverts with a different error (e.g., 'RaiseBoxFaucet_DailyClaimLimitReached'). This is dead code / confusion for integrators and auditors.

Impact

  • Codebase clarity suffers; downstream tools & tests may expect one error and receive another.

  • Slightly larger bytecode; potential miscommunication in docs/integration.

Mitigation:

  • Either use the declared error where appropriate (replace the current revert), or remove the unused error to avoid confusion.

  • Align names and docs to match the actual revert reason emitted by the contract.

Support

FAQs

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