Pangea Swap
English
English
  • Introduction
  • Protocol Overview
  • Disclaimer
    • Risk & Security
    • Terms of Use
  • Updates
  • Audit
  • concentrated liquidity
    • Weakness of V2 DEXs: Low Liquidity utilization rate
    • Solution by V3 DEXs: Concentrated Liquidity
    • Concentrated Liquidity FAQ
  • Connectivity
    • Customizable Pool
  • Governance
    • STONE
      • STONE Distribution Plan
      • Tokenomics (Before)
      • Tokenomics (After)
      • Growth Fund History
    • Contribution Point NFT
  • Guide
    • SWAP
    • Add Liquidity
      • Add liquidity (Preset)
      • Add liquidity (Custom)
    • STONE Staking
    • Revenue Sharing
    • FAQ
  • Growth Partnership
    • Swapscanner
    • ISKRA
  • event
    • Promotion
  • Developers
    • Concept Overview
      • Problem : Lazy Liquidity
      • Liquidity Concentration
      • Position & Risk
      • Price Tick
      • Position NFT
      • Fees
      • Flash Loan
    • Contracts
      • Core Contracts
        • MasterDeployer
        • ConcentratedLiquidityPoolFactory
        • ConcentratedLiquidityPool
        • ConcentratedLiquidityPoolManager
        • PoolRouter
        • PoolLogger
        • AirdropDistributor
      • Contribution Point NFT
      • Price Oracle
    • Interacting with the Protocol
      • Setting up Local Test Environment
        • Test env. commands
      • Getting Pangea Pool Info
      • Creating Pangea Pool
      • Mint Position (add liquidity)
      • Burn Position (remove liquidity)
      • Claim Fee
      • Swap
  • Community
    • Website
    • Discord
    • Telegram
    • Medium
    • Twitter
    • Opensea - Position NFT
    • Opensea - CP NFT
    • GitHub
    • Testnet
    • E-mail
Powered by GitBook
On this page
  • Overview
  • Methods
  • airdropDistributor
  • deployPool
  • getFactoryAddress
  • getPoolAddress
  • pools
  • protocolFeeTo
  • totalPoolsCount
  • Events
  • AddToWhitelistFactory
  • DeployPool
  • ProtocolFeeToUpdated
  • RemoveFromWhitelistFactory
  1. Developers
  2. Contracts
  3. Core Contracts

MasterDeployer

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

PreviousCore ContractsNextConcentratedLiquidityPoolFactory

Last updated 2 years ago

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)

pangea-core/MasterDeployer.sol at main · pangea-protocol/pangea-coreGitHub
Logo