LogoLogo
Return 🡥
  • Welcome
  • General
    • Overview
    • About AO
  • Learn
    • Concepts
      • Products Overview
      • Agents Architecture
    • User Guides
      • Setting Up a Wallet
      • Funding on AO
      • AO Tutorials
      • How to Create a Dapp
      • Whitelist for External Tokens
      • Batch Tranfers for Tokens
      • Fair Launch Process
        • Introduction to Fair Launch on AO
        • Creating a Fair Launch Process
        • Managing your Fair Launch Process
    • Research
  • Products
    • Platforms
      • Botega
        • Market Making Models
          • AMM V2
          • AMM V3
          • Orderbook
          • Fees
        • Swap Assets & Run Agents
          • How to do a simple Swap
          • Limit Orders (Agents)
          • DCA Dollar Cost Averaging (Agents)
          • Stop Loss Order (Agents)
          • My Account
        • Botega Pools
          • Create a New Pool
          • Add & Remove Liquidity on an Existing Pool
          • Managing LP Pools and Stats
        • Botega Tokenomics
          • Protocol Mechanics of the $BOTG Token
          • Earn $BOTG by Delegating Your Yield
          • FAQs
      • Dexi
        • Platform Architecture
        • Dexi Terminal
        • Agent Data-Streams Subscription
        • Create Autonomous Agents
          • 📊 Portfolio Agent
          • 🔢Agent Index
        • Subscribe to Liquidity Pools
      • CoinMaker
        • Create Coins
        • Add Liquidity and make your Asset Tradable
        • Listing your Pool on Dexi
        • Locking Liquidity
        • Updating Token Info
        • Whitelist for CoinMaker Tokens
        • Renounce Token Ownership
        • Bonding Curve
      • DataOS
    • Ecosystem Tooling
      • Ownable
      • Process Testing
      • Subscribable
      • AO Form
      • AO Teal
      • AO Link
      • Coin Burn
  • Resources
    • Media Kit
    • Links
  • Core Financial Infrastructure
    • Permanent Index (PI)
Powered by GitBook
On this page

Was this helpful?

  1. Products
  2. Platforms
  3. Botega
  4. Market Making Models

AMM V2

PreviousMarket Making ModelsNextAMM V3

Last updated 6 months ago

Was this helpful?

Botega's V2 AMM is based on UniV2 constant product formula. For more information on the UniV2 constant product formula, please refer to the

Liquidity Pools on Botega

Botega’s liquidity pools enable seamless trading between two tokens by pooling assets from liquidity providers. Here's how they work and how liquidity providers benefit from participating in the pools.


How Liquidity Pools Work

Each liquidity pool on Botega consists of a pair of tokens, and it facilitates swaps between them.

  • Starting a New Pool: When a new liquidity pool is created, it starts with a zero balance for both tokens. The first liquidity provider seeds the pool by depositing both tokens, establishing the initial price ratio between them.

  • Maintaining Pool Balance: Once a pool is created, trades can be executed, and the pool's balance of each token fluctuates based on the trades being made.


Liquidity Pool Tokens

When you deposit liquidity into a pool, you receive Liquidity Pool (LP) tokens. These tokens represent your share in the pool and come with several important attributes:

  • Minting LP Tokens: As soon as you provide liquidity, LP tokens are minted and sent to your wallet. These tokens signify your ownership of the pool.

  • Proportional Share: The number of LP tokens you receive is proportional to how much liquidity you contribute relative to the total pool size.

    • If you're the first to create the pool, you'll receive LP tokens based on the square root of the product of the two token amounts you deposit, ensuring fair representation of your initial liquidity contribution.

  • Naming Convention: Botega assigns a unique name to each pool's LP tokens based on the token pair. The naming format is: "Botega LP [TokenA Ticker]/[TokenB Ticker]". For example, adding liquidity to a qAR/USDC pool would generate LP tokens named "Botega LP qAR/USDC", making it easy to identify which tokens your LP tokens represent.


Swap Fees

Whenever a trade occurs in a Botega liquidity pool, a 0.25% fee is charged. These fees directly benefit liquidity providers:

  • Fee Distribution: The fees collected from trades are distributed proportionally to all liquidity providers based on their share in the pool. The more liquidity you provide, the larger your portion of the fees.

  • Instant Accrual: Swap fees are immediately added back to the liquidity reserves, increasing the value of the pool and, by extension, the value of your LP tokens.

    To claim your liquidity and the accrued fees, you must burn your LP tokens, which allows you to withdraw your share of the pool along with the earned fees.


No Platform Fees

At present, Botega does not take any platform fees from trades. All trading fees are distributed back to liquidity providers. However, this may change in the future as the platform evolves, but for now, 100% of fees go to LPs.

By participating in Botega liquidity pools, you can earn a share of the trading fees while contributing to a critical piece of decentralized trading infrastructure.

UniV2 docs.