跳到主要内容

Governance

Git Source

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

NameTypeDescription
_fromITerminalThe terminal to allow a new migration from.
_toITerminalThe terminal to allow migration to.

addPriceFeed

Adds a price feed.

function addPriceFeed(IPrices _prices, AggregatorV3Interface _feed, uint256 _currency) external onlyOwner;

Parameters

NameTypeDescription
_pricesIPricesThe prices contract to add a feed to.
_feedAggregatorV3InterfaceThe price feed to add.
_currencyuint256The currency the price feed is for.

setFee

Sets the fee of the TerminalV1.

function setFee(ITerminalV1 _terminalV1, uint256 _fee) external onlyOwner;

Parameters

NameTypeDescription
_terminalV1ITerminalV1The terminalV1 to change the fee of.
_feeuint256The new fee.

appointGovernance

Appoints a new governance for the specified terminalV1.

function appointGovernance(ITerminalV1 _terminalV1, address payable _newGovernance) external onlyOwner;

Parameters

NameTypeDescription
_terminalV1ITerminalV1The terminalV1 to change the governance of.
_newGovernanceaddress payableThe address to appoint as governance.

acceptGovernance

Accepts the offer to be the governance of a new terminalV1.

function acceptGovernance(ITerminalV1 _terminalV1) external onlyOwner;

Parameters

NameTypeDescription
_terminalV1ITerminalV1The terminalV1 to change the governance of.