The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

SmartVaultManagerV5 - state variables in the contract are not initialized in the initialised in initialize function

Summary

A number of state variables in SmartVaultManagerV5 are not initialized and could be vulnerable to invalid state. This invalid state could impact the behaviour and functioning of the smart contract.

Vulnerability Details

As the sequence of function called on a smart contract are not controllable, it is important that the state variables are setup on deployment or on initialisation. But, this approach was not followed for SmartVaultManagerV5 contract.

The concern arises as the initialize function is left blank with out initialising the state variables.

Impact

Unexpected behaviour for the smart contract.

Tools Used

Manual review

Recommendations

Implement the initialize function to assign default values for each of the state variables. The set functions could override the state variables with different values.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 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.