Replies: 2 comments
-
Great suggestion! Completely agree on this. Even if we want to add more vaults in the future, it will be more efficient! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I also agree. We can use OZ's clone library https://docs.openzeppelin.com/contracts/4.x/api/proxy#minimal_clones We can plan to create a new factory contract "BorrowingVaultFactory2" and use this pattern. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Last week (Feb 13, 2023) when I was working on defining the vaults that we need to deploy for each collateral-debt asset pair considering different providers, I realized that the permutation or numbers of vaults that we need to deploy is large.
This means a lot of repeated bytecode that will make us burn an unnecessary and absurd amount of eth, at least when we get to the point of deploying on mainnet.
This made me think on a way to address this.
I believe the refactor is not as straight forward and will take some time, but perhaps is the true way to scale. @brozorec @pedrovalido
I include here a refresher on the factory clone pattern.
Beta Was this translation helpful? Give feedback.
All reactions