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
  • Egg
    • About Egg
  • Legal
    • Terms of Service
    • Privacy Policy
  • Languages
    • 中文
    • 한국어
  • Links
    • X
    • Telegram
    • Discord
    • Github
    • Medium
    • Aftermath Validator
Powered by GitBook
On this page
  1. Pools

Constant Function Market Maker

PreviousFeesNextTutorials

Last updated 2 months ago

Unlike all other AMMs on Sui, which only allow pools of two assets, Aftermath offers a Constant Function Market Maker with up to 8 assets per pool. Why does this matter? For a nascent ecosystem like Sui, most liquidity will arrive via bridge.

Unfortunately, assets which arrive from different chains and/or different bridges, are not fungible. This means if you bridge a coin like ETH from Arbitrum, you can not trade it in a pool which consists of the same coin but was bridged from Solana. Or which arrived via a different bridge.

Our answer to this problem is to pool all of these similar coins together, using a stable swap invariant which pegs their value to be roughly the same, and allows for easy and low slippage trades between coins.

Our CFMM also supports uncorrelated assets, for pools such as ETH, BTC, SUI, USDC, or any other combination at whichever relative weights the user wants. In addition to facilitating efficient swaps between the multiple coins in the pool, these uncorrelated pools also allow for the creation of different types of baskets. For instance, you can create a bluechip index, or a meme coin index, with each individual coin representing any percentage of the total pool so long as they all add up to 100.

Creating pools is completely permissionless, providing complete creative freedom to the community to deploy the pools they are most interested in.

Aftermath Pools
Page cover image