15,000 USDC
View results
Submission Details
Severity: gas
Valid

[I-3] `constant`s should be defined rather than using magic numbers

Summary

Even [assembly] can benefit from using readable constants instead of hex/numeric literals

Vulnerability Details

Instances (1):

File: https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol
331: return (collateralAdjustedForThreshold * 1e18) / totalDscMinted;

Impact

Tools Used

Recommendations

Support

FAQs

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