40,000 USDC
View results
Submission Details
Severity: gas
Valid

Using clones is cheaper than using create2

There’s a way to save a significant amount of gas on deployment using Clones: https://www.youtube.com/watch?v=3Mw-pMmJ7TA

This is a solution that was adopted, as an example, by Porter Finance. They realized that deploying using clones was 10x cheaper:

https://github.com/porter-finance/v1-core/issues/15#issuecomment-1035639516
https://github.com/porter-finance/v1-core/pull/34
I suggest applying a similar pattern, here with a cloneDeterministic method to mimic the current create2

Support

FAQs

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