MixinUpgrade
Overview
License: Apache-2.0-or-later
abstract contract MixinUpgrade is MixinVotingErrors info
GovUpgradeSameAsCurrent
error GovUpgradeSameAsCurrent()Thrown when a new threshold, implementation, or strategy is the same as the current one.
GovUpgradeNotContract
error GovUpgradeNotContract(address target)Thrown when an upgrade target is not a contract.
Parameters:
target
address
The supplied address.
Functions info
updateThresholds (0xc14b8e9c)
Updates the proposal and quorum thresholds to the given values.
Only callable by the governance contract itself.
Thresholds can only be updated via a successful governance proposal.
Parameters:
newProposalThreshold
uint256
The new value for the proposal threshold.
newQuorumThreshold
uint256
The new value for the quorum threshold.
upgradeImplementation (0x83f94db7)
Updates the governance implementation address.
Only callable after successful voting.
Parameters:
newImplementation
address
Address of the new governance implementation contract.
upgradeStrategy (0x3f4360a5)
Updates the governance strategy plugin.
Only callable by the governance contract itself.
Parameters:
newStrategy
address
Address of the new strategy contract.
Last updated