Pact
  • Introduction
    • About
    • Disclaimer
    • Terms and Conditions
  • Getting Started
    • Creating an Algorand Wallet
    • Getting Algorand's native tokens
    • Connecting your Wallet
  • How to
    • Swaps
    • Pools
      • Multiple Fee Tiers
      • Constant Product Market Maker (CPMM)
      • StableSwap Invariant Market Maker (SIMM)
      • Lending Pools
    • Smart Router
    • Analytics
  • FAQ
    • FAQs
  • Knowledge Base
    • Glossary
    • Partnerships
    • Calculation Methodologies
  • Help
    • Contact Us
    • Diagnosing Common Issues
  • Security
    • Security Overview
    • Bug Bounty Program
  • Miscellaneous
    • AMA Archive
Powered by GitBook
On this page
  1. How to
  2. Pools

Constant Product Market Maker (CPMM)

Pact offers a familiar Constant Product Market Maker (CPMM) capability.

PreviousMultiple Fee TiersNextStableSwap Invariant Market Maker (SIMM)

Last updated 2 years ago

Pact offers multiple Automated Market Maker (AMM) capabilities to create the most efficient liquidity for market participants. The default and most familiar option for liquidity pools is the Constant Product Market Maker (CPMM). Under this option, liquidity providers need to supply each token in the pair with an equal or 50:50 value.

How does the Constant Product Market Maker (CPMM) work?

With the Constant Product Market Maker (CPMM) capability, pairs act as automated market makers, ready to accept one token for the other as long as the “constant product” formula is preserved.

This formula is expressed as x * y = k and states that trades must not change the product (k) of a pair’s reserve balances (x and y). Because k remains unchanged from the reference frame of a trade, it is often referred to as the invariant. This formula has the desirable property that larger trades (relative to reserves) execute at exponentially worse rates than smaller ones.

In practice, Pact also applies a to the pool, which is added to the reserves. As a result, each trade also increases k. This incentivises and rewards LPs proportionally to their ownership percentage of the pool.

Because the relative price of the two pair assets can only be changed through trading, divergences between the Pact price and external market prices create arbitrage opportunities. This mechanism ensures that Pact prices always trend toward the market price.

fee