Contract Upgrade
Some key contracts can be upgraded when there’s an update or the bug needs to be fixed. The upgradeable contracts are as follows:
Option contract(
OptionV2Market maker contract (
OptionMaker)Fund contract (
NoteV2)Price coefficient (
PriceCoefficient)Access control contract(
ClearAccessControl)Option index contrac(
OptionIndex)
Upgrade Method
Deploy new contract logic and get a new contract address;
contracts.json->ClearProxyAdminis the upgrade management contract. Callupgrade(proxy,implementation),to upgrade the contract,where proxy is the contract that needs to be upgraded, implementation is the new contract logic,contracts.json->proxyManageris the caller address.
Last updated