Constant Product Formula

Formula

The Constant Product Formula, a cornerstone of Automated Market Makers (AMMs) like Uniswap, dictates the relationship between reserves and prices within a liquidity pool. It mathematically ensures that the product of the quantities of two assets in a pool remains constant during trades. This invariant, typically expressed as x y = k, where x and y represent the quantities of the two assets and k is a constant, governs price discovery and liquidity provision. Deviations from this formula indicate inefficiencies or potential arbitrage opportunities.