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

Unsafe to use floating pragma

Summary

Vulnerability Details

Contracts should be deployed with the same compiler version and flags that
they have been tested with thoroughly.
Locking the pragma helps to ensure that contracts do not accidentally get deployed using,
for example, an outdated compiler version that might introduce bugs that affect the
contract system negatively.

More detail see SWC-103.

There are 3 instances of this issue:

  • Should lock the pragma version instead of floating pragma: ^0.8.18.

  • Should lock the pragma version instead of floating pragma: ^0.8.18.

  • Should lock the pragma version instead of floating pragma: ^0.8.18.

Impact

Tools Used

Recommendations

Lock the pragma version and also consider known bugs (https://github.com/ethereum/solidity/releases)
for the compiler version that is chosen.

Support

FAQs

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