Upgrading Code

The base layer CrocSwapDex contract is built with an upgradeable architecture. New functionality can be added by installing additional proxy contracts. Broken or sub-optimal functionality can be fixed by re-installing existing proxy contracts. With 65,000 slots for unique proxy contracts, upgradeability is practically unlimited.

However since all proxy contracts have full access to the DEX contract's state and funds, introducing new code upgrades is an extremely careful process. Only the fully privileged treasury multisig can upgrade code. And then only after an extensive timelock, which gives all users with funds at the DEX time to carefully evaluate their comfort with the newly introduced code.

Last updated