solstat icon indicating copy to clipboard operation
solstat copied to clipboard

Integrate C4udit Optimizations, Vulns, QA

Open 0xKitsune opened this issue 3 years ago • 3 comments

Implement the common patterns that C4udit analyzes for. It looks like C4udit analyzes for the following gas optimizations and low risk findings.

I think that some optimizations do not apply to more recent Solidity versions, so you might have to verify what versions optimizations like "Don't Initialize Variables with Default Value" are applicable for.

Also, Solstat already covers caching array length and shift math, so no need to focus on those.

Lastly, if you want to check out other common C4 issues, you can checkout this link or the Contribution.md file.

0xKitsune avatar Oct 24 '22 05:10 0xKitsune

There's a few optimizations in this article that currently aren't supported, so I thought I'd document them here as well.

0xClandestine avatar Oct 29 '22 17:10 0xClandestine

Thanks for the link, I've actually seen this doc before (I've worked with ControlCPlusControlV a fair bit!). Feel free to link any other resources for vulns/opts/qa.

0xKitsune avatar Oct 29 '22 17:10 0xKitsune

Thanks for the link, I've actually seen this doc before (I've worked with ControlCPlusControlV a fair bit!). Feel free to link any other resources for vulns/opts/qa.

Oh sick, will continue to drop resources/inspiration here.

0xClandestine avatar Oct 29 '22 18:10 0xClandestine