DeFiFoundry
50,000 USDC
View results
Submission Details
Severity: low
Invalid

Redundant State Variable Causing Storage Inefficiency

Summary

The KeeperProxy contract contains a threshold state variable that is not used when implementing its functionality via the priceDiffThreshold mapping. This creates unnecessary storage overhead.

Vulnerability Details

The contract declares a state variable that is never used while implementing the same functionality through a mapping:

contract KeeperProxy {
uint256 threshold; // Declaration of unused state variables
mapping (address => uint256) public priceDiffThreshold; // The actual mapping used
}

The threshold variable is declared but never used in any function that would occupy a storage slot unnecessarily and has no initialization in the constructor or initialize function.

Impact

Unnecessary storage slot allocation

Tools Used

  • Manual review

Recommendations

Remove the unused state variable

Updates

Lead Judging Commences

n0kto Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational or Gas

Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.

n0kto Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational or Gas

Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.

Support

FAQs

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