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

NameTypeDescription
governance_addressThe address of the governance.

setGovernance

function setGovernance(address newGovernance) external

Sets a new governance address.

Parameters

NameTypeDescription
newGovernanceaddressThe address of the new governance.

getGovernance

function getGovernance() external view returns (address)

Returns the current governance address.

Return Values

NameTypeDescription
[0]addressgovernance The address of the current governance.