Contracts upgrades
Some parts of our protocol are evolving and as most of the software requires maintenance. Here we describe how do we upgrade our protocol source code
Upgrade algorithm
DEFAULT_ADMIN_ROLEcallschangeUpgradeStatus(true)on the upgradeable contractDEFAULT_ADMIN_ROLEgrantsUPGRADER_ROLEto specific trusted address that will be executing upgradeTrusted address is executing upgrade with script using
@openzeppelin/hardhat-upgradesplugin to ensure upgrade safety, storage layout consistency and avoiding potential vulnerability and attacks like this.
Last updated