Skip to main content

What Happens to the ‘K’ Value in the Constant Product Formula When a Trade Occurs?

In the constant product formula (x y = k), the 'k' value represents the pool's total value invariant. When a trade occurs, the 'k' value increases by the amount of the trading fee, which is added to the pool's reserves.

This increase in 'k' benefits the liquidity providers. The core principle of the formula is that the product of the reserves, excluding the fee, must remain constant for the calculation of the trade price.

What Is the Role of the ‘Constant Product Formula’?
How Does a ‘Hybrid AMM’ (Like Curve’s Stableswap) Combine Features of Constant Product and Constant Sum?
What Is the Formula for the Constant Product Market Maker (CPMM) and How Is It Exploited?
How Does the Constant Product Formula (X Y=k) Govern the Price within a Liquidity Pool?