IEmergencyGovernor
Inherits: IThresholdGovernor
Author: M^0 Labs
Functions
setThresholdRatio
Sets the threshold ratio to use going forward for newly created proposals.
Parameters
Name | Type | Description |
---|---|---|
|
| The new threshold ratio. |
addToList
One of the valid proposals. Adds account
to list
at the Registrar.
Parameters
Name | Type | Description |
---|---|---|
|
| The key for some list. |
|
| The address of some account to be added. |
removeFromList
One of the valid proposals. Removes account
to list
at the Registrar.
Parameters
Name | Type | Description |
---|---|---|
|
| The key for some list. |
|
| The address of some account to be removed. |
removeFromAndAddToList
One of the valid proposals. Removes accountToRemove
and adds accountToAdd
to list
at the Registrar.
Parameters
Name | Type | Description |
---|---|---|
|
| The key for some list. |
|
| The address of some account to be removed. |
|
| The address of some account to be added. |
setKey
One of the valid proposals. Sets key
to value
at the Registrar.
Parameters
Name | Type | Description |
---|---|---|
|
| Some key. |
|
| Some value. |
setStandardProposalFee
One of the valid proposals. Sets the proposal fee of the Standard Governor.
Parameters
Name | Type | Description |
---|---|---|
|
| The new proposal fee. |
registrar
Returns the address of the Registrar.
standardGovernor
Returns the address of the Standard Governor.
zeroGovernor
Returns the address of the Zero Governor.
Errors
InvalidRegistrarAddress
Revert message when the Registrar specified in the constructor is address(0).
InvalidStandardGovernorAddress
Revert message when the Standard Governor specified in the constructor is address(0).
InvalidZeroGovernorAddress
Revert message when the Zero Governor specified in the constructor is address(0).
NotZeroGovernor
Revert message when the caller is not the Zero Governor.