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
Deploy new contract logic and get a new contract address;
contracts.json->ClearProxyAdmin
is 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->proxyManager
is the caller address.
Last updated