Governance
Mainnet: 0xAc43e14c018490D045a774008648c701cda8C6b3
Inherits: JuiceboxProject
Owner should eventually change to a multisig wallet contract.
Functions
constructor
constructor(uint256 _projectId, ITerminalDirectory _terminalDirectory)
    JuiceboxProject(_projectId, _terminalDirectory);
allowMigration
Gives projects using one Terminal access to migrate to another Terminal.
function allowMigration(ITerminal _from, ITerminal _to) external onlyOwner;
Parameters
| Name | Type | Description | 
|---|---|---|
_from | ITerminal | The terminal to allow a new migration from. | 
_to | ITerminal | The terminal to allow migration to. | 
addPriceFeed
Adds a price feed.
function addPriceFeed(IPrices _prices, AggregatorV3Interface _feed, uint256 _currency) external onlyOwner;
Parameters
| Name | Type | Description | 
|---|---|---|
_prices | IPrices | The prices contract to add a feed to. | 
_feed | AggregatorV3Interface | The price feed to add. | 
_currency | uint256 | The currency the price feed is for. | 
setFee
Sets the fee of the TerminalV1.
function setFee(ITerminalV1 _terminalV1, uint256 _fee) external onlyOwner;
Parameters
| Name | Type | Description | 
|---|---|---|
_terminalV1 | ITerminalV1 | The terminalV1 to change the fee of. | 
_fee | uint256 | The new fee. | 
appointGovernance
Appoints a new governance for the specified terminalV1.
function appointGovernance(ITerminalV1 _terminalV1, address payable _newGovernance) external onlyOwner;
Parameters
| Name | Type | Description | 
|---|---|---|
_terminalV1 | ITerminalV1 | The terminalV1 to change the governance of. | 
_newGovernance | address payable | The address to appoint as governance. | 
acceptGovernance
Accepts the offer to be the governance of a new terminalV1.
function acceptGovernance(ITerminalV1 _terminalV1) external onlyOwner;
Parameters
| Name | Type | Description | 
|---|---|---|
_terminalV1 | ITerminalV1 | The terminalV1 to change the governance of. |