Raisebox Faucet

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

Unused custom error

Unused custom error may caused more gas to be used than neccesary when deploying the contract

On Line 87, there is a custom error that seemed to be used when reaching a limit of claiming a faucets token.

// -----------------------------------------------------------------------
// ERRORS
// -----------------------------------------------------------------------
error RaiseBoxFaucet_EthTransferFailed();
@> error RaiseBoxFaucet_CannotClaimAnymoreFaucetToday();
error RaiseBoxFaucet_FaucetNotOutOfTokens();
error RaiseBoxFaucet_MiningToNonContractAddressFailed();
error RaiseBoxFaucet_CurrentClaimLimitIsLessThanBy();
// CLAIM ERRORS
error RaiseBoxFaucet_ClaimCooldownOn();
error RaiseBoxFaucet_OwnerOrZeroOrContractAddressCannotCallClaim();
error RaiseBoxFaucet_DailyClaimLimitReached();
error RaiseBoxFaucet_InsufficientContractBalance();

Risk

Impact:

  • Used more gas than neccesary when deploying the contract

Recommended Mitigation

// -----------------------------------------------------------------------
// ERRORS
// -----------------------------------------------------------------------
error RaiseBoxFaucet_EthTransferFailed();
- error RaiseBoxFaucet_CannotClaimAnymoreFaucetToday();
error RaiseBoxFaucet_FaucetNotOutOfTokens();
error RaiseBoxFaucet_MiningToNonContractAddressFailed();
error RaiseBoxFaucet_CurrentClaimLimitIsLessThanBy();
// CLAIM ERRORS
error RaiseBoxFaucet_ClaimCooldownOn();
error RaiseBoxFaucet_OwnerOrZeroOrContractAddressCannotCallClaim();
error RaiseBoxFaucet_DailyClaimLimitReached();
error RaiseBoxFaucet_InsufficientContractBalance();
Updates

Lead Judging Commences

inallhonesty Lead Judge 4 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.