DeFiHardhat
12,000 USDC
View results
Submission Details
Severity: low
Invalid

Floating Pragma

Summary

In Solidity, the pragma directive is used to specify the version of the Solidity compiler to be used for compiling the contract. The pragma statement is typically placed at the beginning of a Solidity source file.

Vulnerability Details

pragma solidity ^0.8.20;

  • Found in src/libraries/LibLastReserveBytes.sol Line: 3

  • Found in src/functions/ProportionalLPToken2.sol Line: 3

Impact

Using a floating pragma exposes contracts to potential security risks associated with new compiler versions. While newer versions may include security improvements or bug fixes, they may also introduce new vulnerabilities or behavioral changes that could affect contract security. Developers must carefully review compiler release notes and assess the impact of upgrading to newer versions on contract security.

Tools Used

Aderyn

Recommendations

Make the pragma of the contract should be solid.

Updates

Lead Judging Commences

giovannidisiena Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational/Invalid

Support

FAQs

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