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

Usage of floating pragma statement

Summary

The contracts OracleLib, DecentralizedStableCoin, and DSCEngine are using a floating pragma statement pragma solidity ^0.8.18;. While this is not necessarily a vulnerability, it could potentially introduce backward compatibility issues if a new version of the Solidity compiler introduces breaking changes.

Vulnerability Details

This statement indicates that the contract can be compiled with any Solidity compiler version from 0.8.18 to versions below 0.9.0. While this provides flexibility in using different compiler versions, it could potentially introduce backward compatibility issues if a new version of the Solidity compiler introduces breaking changes.

Tools Used

Manual review

Recommendations

Consider using a fixed version pragma statement to avoid potential issues related to compiler changes.

pragma solidity 0.8.18;

Support

FAQs

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