Sablier

Sablier
DeFiFoundry
53,440 USDC
View results
Submission Details
Severity: low
Invalid

Pragma allows compilation with latest Solidity version, including unsupported MCOPY opcode on several EVM-compatible chains

Description

As of version 0.8.24 of Solidity, the MCOPY opcode was introduced, offering gas savings as an alternative to using mload + mstore. However, this opcode is not universally supported across all chains at present. According to this website and the documentations provided below, the following chains do not support MCOPY:

Risk

Likelyhood: Medium

  • Every chains not handling MCOPY.

Impact:

  • Contracts may not deploy on these chains or could exhibit unexpected behaviors.

Recommended Mitigation

Restrict the pragma to a maximum version of 0.8.23.

Alternatively, you could wait for these chains to upgrade and support the MCOPY opcode.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

Known - LightChaser

https://github.com/Cyfrin/2024-05-Sablier/issues/1

n0kto Submitter
over 1 year ago
inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

Known - LightChaser

https://github.com/Cyfrin/2024-05-Sablier/issues/1

Support

FAQs

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