Raisebox Faucet

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

Unused State Variable: `blockTime`

Root + Impact

Description

The contract declares a state variable blockTime, initialized to the current block timestamp, but it is never read or updated anywhere in the codebase.
This indicates dead code and may cause confusion, unnecessary gas costs, and code maintenance issues.

// @> Unused State Variable
uint256 public blockTime = block.timestamp;

Risk: Informational

Likelihood: Low

Factor Observation Likelihood Influence
Developer Oversight Variable was likely left from testing or refactoring. Low
Operational Risk Does not affect runtime logic or user interaction. Low
Maintenance Confusion Can mislead future developers or auditors. Medium

Impact: Low

Category Impact Description
Gas Efficiency Adds an unnecessary storage slot, increasing contract deployment cost.
Code Clarity Misleads developers into thinking it is used for time-tracking logic
Auditability Creates noise during security reviews, reducing code readability.

Proof of Concept

Recommended Mitigation

No security impact, but adds unnecessary gas cost and reduces code quality, it is better to be removed.

- uint256 public blockTime = block.timestamp;
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.