Delegation to other contracts. For instance I need info about price of some particular pair. I deployed another oracle contract that would look at uniswap ratio and return the price. I put in the oracles address in my main contract. Now if I want to add another exchange in my calculations, I would deploy another contract with the same interface and replace the address in my main contract. To keep the main contract decentralised, the decision of changing the oracle address var should be taken by DAO
Jan 26, 2021, 6:27 PM
I got what you're saying now. And this could be achievable by going with modular approach in coding, right?
Jan 26, 2021, 6:31 PM
Yep
Jan 26, 2021, 6:32 PM
Thanks Allen, got you
Jan 26, 2021, 6:32 PM
Check out diamond pattern : https://eips.ethereum.org/EIPS/eip-2535
Does anyone know if create2 increments contract nonce ?
Jan 26, 2021, 9:10 PM
It's performed in a transaction, so yes and no. You can do multiple create2 in a transaction, but a transaction always uses a higher nonce than the previous one
Jan 26, 2021, 9:12 PM
What about for a contract nonce?
Jan 26, 2021, 9:13 PM
Ah, sorry, misread your question first. Good question. I would say no, but not 100% sure.
Jan 26, 2021, 9:15 PM
Got it — will run a test then and report back
Dapptool’s multisig and proxy are a good readable example: https://dapp.tools/dappsys/ds-multisig.html
For a more in depth read on proxies check out: https://blog.openzeppelin.com/proxy-patterns/
Is there any security audit firm that provides guarantee or insurance in case of lost funds or other unspecified behavior within scope?
Jan 26, 2021, 10:30 PM