Flow

Sablier
FoundryDeFi
20,000 USDC
View results
Submission Details
Severity: medium
Invalid

FLOW Cannot be deployed on Linea due to the unsupported `PUSH0` opcode

Summary

SabierFlow.sol which is the main Flow contract is compiled using the Solidity version >=0.8.22, which includes PUSH0 opcode in the compiled bytecode.

  • According to the README, the Flow is expected to work on any EVM based blockchain which includes LINEA .

This presents an issue because Linea does not yet support the PUSH0 opcode, which can lead to unexpected behavior or outright failures when deploying and running the smart contracts.see here

Vulnerability Details

https://github.com/Cyfrin/2024-10-sablier/blob/8a2eac7a916080f2022527408b004578b21c51d0/src/SablierFlow.sol#L2

pragma solidity >=0.8.22;

Impact

Deploying the protocol on Linea with the current Solidity version (>=0.8.22) may result in unexpected behavior or failure due to the unsupported PUSH0 opcode.

Tools Used

Manual Review

Recommendations

for Linea consider using version 0.8.19 to compile

Updates

Lead Judging Commences

inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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