15,000 USDC
View results
Submission Details
Severity: gas

Missing `initializer` modifier on constructor

Summary

OpenZeppelin recommends that the initializer modifier be applied to constructors in order to avoid potential griefs, social engineering, or exploits

Vulnerability Details

OpenZeppelin recommends that the initializer modifier be applied to constructors in order to avoid potential griefs, social engineering, or exploits. Ensure that the modifier is applied to the implementation contract

112 constructor(address[] memory tokenAddresses, address[] memory priceFeedAddresses, address dscAddress) {

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol#L112

Impact

Informational

Tools Used

Manual review

Recommendations

Add initializer modifier to constructor

Support

FAQs

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