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(OptionV2

  • Market maker contract (OptionMaker)

  • Fund contract (NoteV2)

  • Price coefficient (PriceCoefficient)

  • Access control contract(ClearAccessControl)

  • Option index contrac(OptionIndex)

Upgrade Method

  1. Deploy new contract logic and get a new contract address;

  2. contracts.json->ClearProxyAdminis the upgrade management contract. Call upgrade(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