MasterDeployer

A contract that distributes the Concentrated Liquidity Pool, which manages the permission of the factory that creates the pool.

Overview

Pangea adopted the design that separates the factory that creates the pool and the deployer that distributes the pool, as suggested by the Trident. By doing so, specification changes of the pool in the future became more flexible. And furthermore, implementing a customized pool according to the requirements of other DAPPs is made possible.

For example, rebasing tokens such as Ampleforth, whose total supply changes over time, were difficult to be accommodated with the existing pool spec. However, in Pangea, which separates the deployer and the factory, custom pools for such tokens can be developed and distributed according to the request of the protocol.

Methods

airdropDistributor

function airdropDistributor() external nonpayable returns (address)

Returns Airdrop Distributor address

deployPool

function deployPool(address factory, bytes deployData) external nonpayable returns (address)

Creates pool through factory

getFactoryAddress

function getFactoryAddress(address pool) external view returns (address factory)

Returns the address of the Factory which deployed the pool

getPoolAddress

function getPoolAddress(uint256 idx) external view returns (address pool)

Return the address of the pool by index

pools

function pools(address pool) external view returns (bool)

Returns whether the pool was deployed via a deployer

protocolFeeTo

Returns the address receiving protocol fees from Pool

function protocolFeeTo() external view returns (address)

totalPoolsCount

function totalPoolsCount() external view returns (uint256 total)

Returns the number of pools deployed from the masterDeployer

Events

AddToWhitelistFactory

event AddToWhitelistFactory(address indexed factory)

DeployPool

event DeployPool(address indexed factory, address indexed pool, bytes deployData)

ProtocolFeeToUpdated

event ProtocolFeeToUpdated(address protocolFeeTo)

RemoveFromWhitelistFactory

event RemoveFromWhitelistFactory(address indexed factory)

Last updated