code-423n4 / 2021-07-sherlock-findings

0 stars 0 forks source link

Using unlocked/floating pragmas #132

Closed code423n4 closed 3 years ago

code423n4 commented 3 years ago

Handle

shw

Vulnerability details

Impact

Unlocked/floating pragmas are found in multiple contracts. Locking the pragma helps ensure that contracts are not accidentally deployed using an outdated compiler version with unfixed bugs.

Proof of Concept

Referenced code: Please use grep -R pragma . to find the unlocked/floating pragmas.

Recommended Mitigation Steps

Lock pragmas to a specific Solidity version. Consider the compiler bugs in the following links and ensure that they do not affect the contracts. It is also recommended to use the latest version of Solidity when writing and deploying contracts (see Solidity docs).

Related links: Solidity repo - known bugs Solidity repo - bugs by version

Evert0x commented 3 years ago

16

ghoul-sol commented 3 years ago

This is best practices recommendation, non-critical