Creating Pools

Constant Product Market Maker (CPMM)

XenDEX features a standard AMM program (CP-Swap) that supports Token-2022 assets, allowing for permissionless pool creation. This enables anyone to set up a liquidity pool on the platform.

Note: Before proceeding, it is highly recommended to read and understand this guide in full.


Important Requirements for Pool Creation

  • SPL Tokens: Pool creation requires the freeze authority to be disabled.

  • Token-2022 Extensions: Only supports Transfer Fees, Metadata Pointer, and Metadata extensions.

  • AMM ID: Every new LP will have an associated AMM ID.

When a pool is created, a fraction of the initial liquidity is allocated to the pool vaults rather than minted as LP tokens. This ensures the pool remains active and ready to accept new liquidity positions. LP tokens can be burned to transfer underlying assets and trading fees back to the pool.


How to Create a Permissionless Pool

  1. Access the Pool Creation Tool

    • Go to the Liquidity page on XenDEX. In the top-right corner, click "Create".

  2. Choose Standard AMM

    • Select "Standard AMM" under the pool creation options, then click ‘Continue’.

  3. Configure Pool Settings

    • Starting Price: Set the number of Quote Tokens needed to purchase 1 Base Token.

    • Initial Liquidity: Enter the amount for either the Base or Quote token, and the system will auto-calculate the other based on the starting price.

    • Start Date and Time: Select the launch date and time for the pool.

    Ensure your wallet has sufficient funds for the initial liquidity, then click ‘Initialize Liquidity Pool’.

    Note: Once you confirm and initialize the pool, the starting price, liquidity, and start time cannot be modified.

  4. Confirm and Approve the Transaction

    • After clicking confirm, approve the transaction in your wallet. This will:

      • Initialize the pool

      • Create the AMM account and ID

      • Add liquidity from your wallet.

  5. Completion and AMM ID

    • Once the transaction is confirmed in your wallet, the pool will be created with a unique AMM ID. The pool will launch at the set start time.


Helping Users Find Your Pool

  • Token Search: Users can search for a token by mint address and add it to their personal list if it’s not on the default token list.

  • AMM ID: Share the AMM ID to help others locate the pool on the Liquidity page.

  • Detailed Guides: A comprehensive guide on locating pools using token addresses or AMM IDs is available for users.

You can revisit the Pools page at any time to view LPs you have previously created and monitor your pools.

Last updated