Raisebox Faucet

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

[L-4] Large Numeric Literal (Style)

[L-4] Large Numeric Literal (Style)

Description

  • Normal behavior: Use readable numeric notation (e.g., 1e18) for large literals.

  • Specific issue: INITIAL_SUPPLY uses a long literal that is less readable.

uint256 public constant INITIAL_SUPPLY = 1000000000 * 10 ** 18; // @> large literal

Risk

Likelihood:Low

  • Code readability issues when maintaining the contract.

  • No runtime exploitability.

Impact:Low

  • Minor: developer confusion or typos.

Proof of Concept

// Replace with 1e9 * 1e18 or 1e27 for clarity.

Recommended Mitigation

- uint256 public constant INITIAL_SUPPLY = 1000000000 * 10 ** 18;
+ uint256 public constant INITIAL_SUPPLY = 1e9 * 1e18; // clearer
Updates

Lead Judging Commences

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