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_ROLE
callschangeUpgradeStatus(true)
on the upgradeable contractDEFAULT_ADMIN_ROLE
grantsUPGRADER_ROLE
to specific trusted address that will be executing upgradeTrusted address is executing upgrade with script using
@openzeppelin/hardhat-upgrades
plugin to ensure upgrade safety, storage layout consistency and avoiding potential vulnerability and attacks like this.
Last updated