AMM Price Discovery

Algorithm

The core function of AMM price discovery relies on a deterministic algorithm, most commonly the constant product formula, which ensures a continuous market for the asset pair. This mathematical model dictates how the price changes in response to trades, where larger trades result in greater price impact, often referred to as slippage. The algorithm’s design aims to maintain a specific invariant, automatically adjusting the price to reflect the supply and demand dynamics within the liquidity pool.