The Standard

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

SmartVaultManagerV5::swapRouter variable is declared and not used.

Summary

swapRouter variable is declared and never used in the contract.

Vulnerability Details

SmartVaultManagerV5 declares swapRouter state variable and never uses it. Being an upgradable contract, the storage layout should be reviewed and ensured that layout will not cause any conflicts in future.

The risk of declaring a variable in such contract and removing them later due to lack of usage could cause bad impact when the contract is upgraded.

Impact

Bad storage layout and consequences incase the variable is removed due to lack of usage at later point.

Tools Used

Manual review

Recommendations

Remove unused state variables

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.