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.
error RaiseBoxFaucet_EthTransferFailed();
@> error RaiseBoxFaucet_CannotClaimAnymoreFaucetToday();
error RaiseBoxFaucet_FaucetNotOutOfTokens();
error RaiseBoxFaucet_MiningToNonContractAddressFailed();
error RaiseBoxFaucet_CurrentClaimLimitIsLessThanBy();
error RaiseBoxFaucet_ClaimCooldownOn();
error RaiseBoxFaucet_OwnerOrZeroOrContractAddressCannotCallClaim();
error RaiseBoxFaucet_DailyClaimLimitReached();
error RaiseBoxFaucet_InsufficientContractBalance();
Risk
Impact:
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();