Steadefi

Steadefi
DeFiHardhatFoundryOracle
35,000 USDC
View results
Submission Details
Severity: medium
Invalid

`pragma solidity 0.8.21` can lead to non-functional / corrupted contract when deployed on Arbitrum

Summary

Pragma has been set to 0.8.21. The problem with compiling is that Arbitrum is NOT compatible with 0.8.20 and later.

Vulnerability Details

The default behaviour of the compiler would be to use the specified version which will produce broken code.

Impact

Corrupted or non-functional contracts when deployed on Arbitrum.

Tools Used

Manual Review

Recommendations

Lock or Constrain pragma as follows: pragma solidity 0.8.19 or pragma solidity >=0.8.0 <=0.8.19.

- pragma solidity 0.8.21;
+ pragma solidity 0.8.19;
Updates

Lead Judging Commences

hans Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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