Governed
↗ Extends: Initializable ↘ Derived Contracts: CommissionSplitter, MoCBucketContainer, MoCEMACalculator, MoCInrate, MoCInrateEvents, MoCInrateStructs, MoCSettlement, MoCSettlementEvents, MoCVendors, MoCVendorsEvents, Stoppable, UpgradeDelegator
Governed - version: 0.1.12
Base contract to be inherited by governed contractsThis contract is not usable on its own since it does not have any productive useful behaviour The only purpose of this contract is to define some useful modifiers and functions to be used on the governance aspect of the child contract
Constants & Variables
contract IGovernor public governor;
string private constant NOT_AUTHORIZED_CHANGER;
uint256[50] private upgradeGap;
Modifier that protects the functionYou should use this modifier in any function that should be called through the governance system
modifier onlyAuthorizedChanger() internal
Arguments
Initialize the contract with the basic settingsThis initialize replaces the constructor but it is not called automatically. It is necessary because of the upgradeability of the contracts
function initialize(IGovernor _governor) public nonpayable initializer
Arguments
Name | Type | Description |
---|---|---|
_governor | IGovernor | Governor address |
Change the contract's governor. Should be called through the old governance system
function changeIGovernor(IGovernor newIGovernor) public nonpayable onlyAuthorizedChanger
Arguments
Name | Type | Description |
---|---|---|
newIGovernor | IGovernor | New governor address |
Last modified 1yr ago