Clear Developer Guide
  • Clear Developer Guide
  • Deploy Contract
    • Quick start
    • Configure Contract
    • Contract Upgrade
    • Contract Address
  • Configure contract parameters
    • Configure Contract Parameters
  • Interact with the contract
    • OPTION
      • Market Maker
      • User
    • NOTE
      • Fund Manager
      • LP User
  • Contract reference
    • Oracle
    • Index Contract
    • Option Contract
    • Market Maker Contract
    • Note Contract
  • APIs
    • Configure
    • Price
    • User
    • Market Maker
    • Index
    • Option parameter configuration
    • Faucet
Powered by GitBook
On this page
  • Contract upgrade
  • Upgrade method
  1. Deploy Contract

Contract Upgrade

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.

PreviousConfigure ContractNextContract Address

Last updated 3 years ago