DeFiHardhat
35,000 USDC
View results
Submission Details
Severity: low
Invalid

Multiple Uninitialized state variables.

Summary

State variable is not properly initialized before it is used in a contract, thus prone to malfunction as state variables are automatically initialized with default values

Vulnerability Details

With state variables not initialized explicitly and is accessed before being assigned a value, contract state is exposed to unexpected behavior and vulnerabilities.
Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#uninitialized-state-variables

Impact

This flaw is prone to incorrect calculations, unexpected conditions, and exposes contract where uninitialized variables can manipulated.

Tools Used

Slither

Recommendations

Resort to explicitly initialize all state variables in contracts, either by assigning an initial value directly or by initializing them in the constructor function. By ensuring proper initialization, you can get rid of this flaw.

Updates

Lead Judging Commences

giovannidisiena Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational/Invalid

Support

FAQs

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