Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: low

More recent solidity version should be used

Summary

Solidity version used in the contracts is 0.8.18, but newer and safer version can be used.

Vulnerability Details

Since the protocol intends to be deployed on any EVM-compatible chain it shouldn't use solidity version 0.8.20 since, chains like Optimism or Arbitrum doesn't support PUSH0 opcode, but the version 0.8.19 can be used and should be used because It also contains a fix for a long-standing bug that can result in code that is only used in creation code to also be included in runtime bytecode.
https://github.com/ethereum/solidity/releases/tag/v0.8.19

Impact

Low since it doesn't affect the code by itself but it is a recommended upgrade

Tools Used

Manual review

Recommendations

Use solidity version 0.8.19 instead of 0.8.18.

Support

FAQs

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