⚙️
Native Developers
  • Native V1
    • Overview
    • Operations
      • Single-Hop Transaction: Off-chain Pricing
      • Single-Hop Transaction: On-chain Pricing
      • Multi-Hop Transaction
      • L1 Token Swap
      • Creating a Pool
      • Updating a Pool
    • System Components
      • GUI
      • Native Backend
      • Pricer
      • Registry
      • Signer
      • Pool
      • Pool Factory
      • Treasury
      • Router
    • Smart Contracts
      • Core
        • Registry
        • NativePool
        • NativePoolFactory
        • NativeRouter
      • Liquidity Pools
    • Contract Address
    • API References
      • GET /v1/indicative-quote
      • GET /v1/orderbook
      • GET v1/firm-quote
      • GET v1/firm-quote/calldata
    • Guide
      • Get quote for ETH to USDT
      • Execute ETH to USDT swap on Native
    • Routing
  • Market Maker Integration
    • WebSocket Connection
Powered by GitBook
On this page
  • Functions
  • checkPoolCreator
  • removePoolCreator
  • createNewPool
  1. Native V1
  2. Smart Contracts
  3. Core

NativePoolFactory

Deploys Native pools, and manage pool creators

Functions

checkPoolCreator

function checkPoolCreator(
    address _poolcreator
) public view returns (bool)

Check if a given address is allowed to create pool

Parameters:

Name
Type
Description

_poolcreator

address

The address to check

addPoolCreator

function addPoolCreator(
    address _poolcreator
) external {

Add a new address to be allowed to create pool

Parameters:

Name
Type
Description

_poolcreator

address

The address to add

removePoolCreator

function removePoolCreator(
    address _poolcreator
) external {

Remove an address's right to create pool

Parameters:

Name
Type
Description

_poolcreator

address

The address to remove

createNewPool

function createNewPool(
    address treasuryAddress,
    address poolOwnerAddress,
    address signerAddress,
    address pricingModelRegistry,
    uint256[] memory fees,
    address[] memory tokenAs,
    address[] memory tokenBs,
    uint256[] memory pricingModelIds
) external returns (IPool pool)

Create a new Native pool with initial parameters, returns the pool created

Must be called by pool creators. registry must be set for factory before creating any pools

Name
Type
Description

treasuryAddress

address

Treasury that holds

PreviousNativePoolNextNativeRouter

Last updated 1 year ago