Steadefi

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

Constructor parameters shadow other parameters

Summary

The GMXVault constructor declares the name and symbol, but they shadow the OZ ERC20 parameters.

Vulnerability Details

Declaring parameters that shadow existing ones is error-prone, as it can lead to developer confusion, potentially introduce bugs, and diminish code readability and maintainability.

https://github.com/Cyfrin/2023-10-SteadeFi/blob/main/contracts/strategy/gmx/GMXVault.sol#L71

Tools Used

Manual

Recommendations

Consider removing the parameters or storing them in GMXTypes.Store if every new deployment will have a unique name and symbol.

Updates

Lead Judging Commences

hans Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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