Aftermath
  • Aftermath
    • About Aftermath Finance
      • What are we building?
  • Getting Started
    • Creating an account
      • zkLogin
        • Removing a zkLogin account
      • Sui Metamask Snap
      • Native Sui wallets
    • Dynamic Gas
    • Navigating Aftermath
      • Interacting with your Wallet
      • Viewing your Portfolio
      • Changing your Settings
      • Bridge
      • Referrals
  • Trade
    • Smart-Order Router
      • Agg of Aggs
      • Making a trade
      • Exact Out
      • Fees
    • DCA
      • Why should I use DCA
      • How does DCA work
      • Tutorials
        • Creating a DCA order
        • Monitoring DCA progress
        • Advanced Features
      • Fees
      • Contracts
  • Limit Orders
    • Contracts
    • Fees
  • Pools
    • Constant Function Market Maker
      • Tutorials
        • Depositing
        • Withdrawing
        • Creating a Pool
      • Fees
      • Contracts
      • Audit
  • Farms
    • Afterburner Vaults
      • Tutorials
        • Staking into a Farm
        • Claiming Rewards
        • Unstaking
        • Creating a Farm
      • Architecture
        • Vault
        • Stake Position
      • Fees
      • FAQs
  • Liquid Staking
    • afSUI
      • Tutorials
        • Staking
        • Unstaking
      • Architecture
        • Packages & Modules
        • Entry Points
      • Fees
      • FAQs
      • Contracts
      • Audit
  • Perpetuals
    • Aftermath Perpetuals
      • Tutorials
        • Creating an Account
        • Selecting a Market
        • Creating a Market Order
        • Creating a Limit Order
        • Maintaining your Positions
      • Architecture
        • Oracle Prices
        • Margin
        • Account
        • Trading
        • Funding
        • Liquidations
        • Fees
  • GameFi
    • NFT AMM
      • Architecture
        • Fission Vaults
        • AMM Pools
      • Tutorials
        • Buy
        • Sell
        • Deposit
        • Withdraw
      • Sui Overflow
  • Our validator
    • About us
  • Developers
    • Aftermath TS SDK
      • Utils
        • Coin
        • Users Data
        • Authorization
      • Products
        • Prices
        • Router
        • DCA
        • Limit Orders
        • Liquid Staking
        • Pools
        • Farms
    • Aftermath REST API
      • Authorization
  • Egg
    • About Egg
  • Legal
    • Terms of Service
    • Privacy Policy
  • Languages
    • 中文
    • 한국어
  • Links
    • X
    • Telegram
    • Discord
    • Github
    • Medium
    • Aftermath Validator
Powered by GitBook
On this page
  • DAO Fee
  • Coin and Initial Deposit
  • Burn LP Coin
  1. Pools
  2. Constant Function Market Maker
  3. Tutorials

Creating a Pool

Anyone can create their own pool on Aftermath, permissionlessly.

PreviousWithdrawingNextFees

Last updated 6 days ago

To create a pool, navigate to the Pools tab.

To the top right, you will see a Create Pool button. Click on this, and it will bring you to the page where you can open a new pool on Aftermath.

Click on Create Pool, and a new page will open where you will be prompted to set the parameters for your Pool. The first step is to decide on the type of Pool:

There are two types of invariants (curves) you can choose from for your pool: Uncorrelated and Stable. Uncorrelated is for assets whose prices fluctuate relative to each other, such as a pool with SUI, USDC, and BTC. The Stable invariant is for similar assets, such as various USD-pegged stablecoins, different variations of staked SUI, etc. Note that correlated pools must have equal weights of each asset. Uncorrelated pools may have whichever relative weights the creator of the pool chooses. Once you have chosen your Pool type, click Next.

There are various attributes of your Pool to specify on page two. We will review them all:

Pool Name: This is the name that will appear on the Pools page to users of the Aftermath app.

Trade Fee: Here you can set the fees charged to traders which go to liquidity providers. Typical fees are 0.3% for uncorrelated pools and 0.05% for stable pools, but you may specify any fee you wish.

LP Coin Name: This is the name of the LP token as it will display in wallets and on apps.

LP Coin Symbol: This is the name of the LP token as it will be stored on-chain.

DAO Fee

Users may also opt to add a DAO fee to their pool. This is an aditional fee applied to all trades, deposits, and withdrawals from the pool, which are collected and sent to a specified address. These fees can then be used to fund the development, maintenance, marketing and incentives of the organization.

Once you have set all of the parameters on Page 2, click next.

Coin and Initial Deposit

Once you have specified the Names, Fee, Symbol, and Curve Type, it is time to choose the number and relative weight of coins in the pool. The default is two coins, but you can add more by clicking the Add Coin button. Note that you can only add coins which you hold in your wallet, as you must provide an initial deposit for each coin.

Using the dropdown menu, select a coin from the list, and enter the amount of the coin you wish to deposit into the pool. You can then select the desired weight of that coin relative to the entire pool. This weight can be anything from 1% to 99%, so long as the total of all of the coins adds up to 100%.

Once you have your initial deposit and the relative weight of all of the coins you would like in your pool, the Create Pool button will light up and you can proceed. If the fields are not filled out correctly, you will not be able to create the pool. You can review the parameters you set in the modal to the right, and may adjust any of them by clicking the Previous button to return to the other pages.

Burn LP Coin

Pool creators have the option to burn the initial liquidity LP tokens upon pool creation. These LP tokens are sent to an unreachable address, and can never be retrieved. This means that all liquidity used to initially seed the pool will be locked in the pool forever.

This is applicable only to the initial deposit amounts of each coin in the pool. Any liquidity added to the pool after it has been created will be issued LP tokens as normal.

Creating pools is completely permissionless and no fee is charged to do so. With up to 8 assets at arbitrary weights, you can be quite creative when launching a new pool, so have fun!

Permissionless Pool creation tutorial
Create Pool button is located at the top right of the Pools page
Pool Creation: Pool Type
Pool Creation: Pool Info
Create Pool: Coins in Pool