⚙️
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
  1. Native V1
  2. Operations

Creating a Pool

  1. Project team set pool config via the Native UI. Fill in the data and clicks on "Create Pool". Where "Liquidity address" refers to Treasury in this doc, which is the source of liquidity of the pool

  2. Project team signs the transaction

  3. Native Backend is called to generate an unique signer for the pool

  4. The Pool Factory is called to spin up a new pool and pass all the pair configs and signer address to initialize a new Pool using the constructor() function

  5. Native Backend is called to save the pool details in the Native database after creation is successful on-chain

  6. Project team should use the Liquidity address to give allowance to the Pool to allow users swapping on the Pool. It can be done by connecting Liquidity address, clicking on "Manage", and using the "Change allowance" button in the pool.

The wallet which created the pool is the "Admin" of the pool. Only the "Owner" of a pool can make changes to the settings of the pool after creation.

By default, the Liquidity address (Treasury) is set to be the same address as the "Owner" of the pool. However, it is possible to use a different address for the Treasury if needed.

PreviousL1 Token SwapNextUpdating a Pool

Last updated 1 year ago