Skip to main content

MasterDeployer

MasterDeployer is the contract in charge of deploying Trident pools with a template factory whitelist.

The full contract can be found here.

Functions

deployPool

function deployPool(address _factory, bytes calldata _deployData) external returns (address pool)

Deploys a pool and returns the address of the newly deployed pool.

Parameters

NameTypeDescription
_factoryaddressaddress of factory contract
_deployDatabytesdata needed to deploy a pool

Returns

NameTypeDescription
pooladdressaddress of newly deployed pool

addToWhitelist

function addToWhitelist(address _factory) external onlyOwner

Adds an address to the whitelist. Can only be called by the owner of the contract.

Parameters

NameTypeDescription
_factoryaddressaddress to whitelist

removeFromWhitelist

function removeFromWhitelist(address _factory) external onlyOwner

Removes an address from the whitelist. Can only be called by the owner of the contract.

Parameters

NameTypeDescription
_factoryaddressaddress to remove from whitelist

setBarFee

function setBarFee(uint256 _barFee) external onlyOwner

Sets the bar fee. Can only be called by the owner of the contract.

Parameters

NameTypeDescription
_barFeeuint256amount to set bar fee to

setBarFeeTo

function setBarFeeTo(address _barFeeTo) external onlyOwner

Sets the address for the recipient of the bar fee. Can only be called by the owner of the contract.

Parameters

NameTypeDescription
_barFeeToaddressaddress of bar fee recipient