Governable.sol
All contracts managed by governance should inherit from this contract.
governance
address governance
The address of the governance.
onlyProtocolAdmin
modifier onlyProtocolAdmin()
Ensures that the function is called by the protocol admin.
whenNotPaused
modifier whenNotPaused()
constructor
constructor(address governance_) internal
Constructs a new Governable contract.
Parameters
Name | Type | Description |
---|---|---|
governance_ | address | The address of the governance. |
setGovernance
function setGovernance(address newGovernance) external
Sets a new governance address.
Parameters
Name | Type | Description |
---|---|---|
newGovernance | address | The address of the new governance. |
getGovernance
function getGovernance() external view returns (address)
Returns the current governance address.
Return Values
Name | Type | Description |
---|---|---|
[0] | address | governance The address of the current governance. |
Updated 2 months ago