MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Invalid

Risk of using floating pragma

Using floating pragma increases the possibility of errors and some risks

Vulnerability Details

The risk associated with using a floating pragma in Solidity lies mainly in the potential for inconsistencies due to the use of different compiler versions across different parts of a project. This could lead to unexpected behavior and potential security vulnerabilities.
his approach can lead to problems when the contract is compiled with different versions of the compiler. Each version of the compiler may have different behaviors, especially regarding new features or changes in existing ones. Therefore, a contract compiled with one version of the compiler may behave differently when compiled with another version, even if the version falls within the range specified by the floating pragma

Impact

Impact : Medium
Likelihood: Low
Overall risk : Low

Tools Used

Manual Reviewe

Recommendations

To mitigate these risks, it is recommended to lock the pragma version to a specific one and consider known bugs for the chosen compiler version 5. It's also important to keep the compiler version up to date with the latest security patches and best practices

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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