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.

Last updated