sherlock-audit / 2024-02-rubicon-finance-judging

5 stars 3 forks source link

DJINN - Use of floating pragma #8

Closed sherlock-admin closed 9 months ago

sherlock-admin commented 9 months ago

DJINN

medium

Use of floating pragma

Summary

Multiple contracts are deployed with pragma solidity ^0.8.19. This is inconsistent between (out of scope) contracts in the project as some use fixed pragma pragma solidity 0.8.19

Vulnerability Detail

Using unlocked pragma can cause contracts to compile with different solidity compiler versions than what was anticipated during development, testing, and deployment.

Impact

Inconsistency between compiler versions used for testing, development, and deployment can introduce unforeseen errors or changes in behavior introduced by different solidity versions.

Code Snippet

Tool used

Manual Review

Recommendation

Avoid using floating pragma and instead choose a suitable solidity version for the project. Use fixed pragma instead.

sherlock-admin commented 9 months ago

3 comment(s) were left on this issue during the judging contest.

tsvetanovv commented:

Information

PNS commented:

L-01 OZ Audit; Floating Pragma

0xAadi commented:

Invalid: OOS