Skip to content
TRADING & AMMS

Constant Product (Constant Product Formula)

Definition

The constant product formula (x*y=k) is the mathematical model used by AMMs like Uniswap to automatically set prices based on token ratios in liquidity pools.

Example

💡 Example

In a ETH/USDC pool, if you buy ETH, the ETH amount decreases and USDC increases, maintaining the constant product while raising ETH's price.

Risks to Consider

⚠️ Risks
  • Price impact
  • Arbitrage opportunities
  • Impermanent loss

Related Terms

Related Articles

Volume begets fees: how are the main decentralized exchanges capturing value?

I’ve shared my perspective on many DeFi protocols on this blog, but recently I realized I’ve never gone back to the basics: the DEXs. That’s precisely what we will do today, tackling the topic mostly by looking at value capture mechanisms. AMM-based DEXs like Uniswap, Curve or SushiSwap all grew tremendously both in available liquidity and volume this year, and so did the fees they collected. To put it simply: these DEXs now are the main fee-collectors there are in crypto, right after the Bitcoin and Ethereum network themselves:
Volume begets fees: how are the main decentralized exchanges capturing value?

The Pegged Asset Swap Wars

Dear readers, it’s been a while! As you likely know, liquidity management is both my passion and profession. In this article, I aim to revisit the basics and offer a brief history through the lens of pegged asset swaps. As we detail the liquidity structure and venues that best support those pairs, we will gain a deeper understanding of key concepts that remain critical to navigating that space today. We also get the chance to cover Fluid DEX and EulerSwap, the two most interesting releases of the year for liquidity-building who definitely deserved more airtime around here.
The Pegged Asset Swap Wars