What Is the Role of the ‘Constant Product Formula’?
The constant product formula, x y = k, is the core mechanism of many AMMs like Uniswap. It ensures that the product of the quantities of the two assets in the pool (x and y) always remains constant (k).
This formula automatically determines the price ratio and ensures that the pool always has liquidity, though it can lead to slippage.