15,000 USDC
View results
Submission Details
Severity: gas

Use solidity version 0.8.19 to gain some gas boost

Summary

Use solidity version 0.8.19 to gain some gas boost

Vulnerability Details

It is better to upgrade to the latest solidity version 0.8.19 to get additional gas savings.
See the latest release for reference: https://soliditylang.org/blog/2023/02/22/solidity-0.8.19-release-announcement/

Instances:

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DSCEngine.sol#L24

pragma solidity ^0.8.18;

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/DecentralizedStableCoin.sol#L24

pragma solidity ^0.8.18;

https://github.com/Cyfrin/2023-07-foundry-defi-stablecoin/blob/main/src/libraries/OracleLib.sol#L3

pragma solidity ^0.8.18;

Impact

Use of the above-mentioned solidity version helps save some gas.

Tools Used

Manual review

Recommendations

Change the solidity version to 0.8.19.

Support

FAQs

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