DeFiFoundrySolidity
16,653 OP
View results
Submission Details
Severity: low
Invalid

Solidity pragma should be specific, not wide

Summary

Consider using a specific version of Solidity in your contracts instead of a wide version. For example, instead of pragma solidity ^0.8.0;, use pragma solidity 0.8.0;

Vulnerability Details

  • Found in src/mock/TokenAdapterMock.sol Line: 1

    pragma solidity ^0.8.13;
  • Found in src/mock/YieldTokenMock.sol Line: 1

    pragma solidity ^0.8.13;
    ``

Impact

Using wide pragma (^) means the code can be compiled with any compatible version above the specified one. This can lead to inconsistent behavior if different versions are used.

Tools Used

aderyn
slither
manual review

Recommendations

Replace wide version declarations with specific versions and use the most recent version that's being targeted (0.8.13 in this case)

Updates

Appeal created

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Out of scope
inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Out of scope

Support

FAQs

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