What Is an Automated Market Maker (AMM) and How Does It Determine the Price of a Crypto Asset?
An AMM is a protocol used by decentralized exchanges that replaces the traditional order book with liquidity pools and a mathematical pricing algorithm. The most common is the constant product formula (x y = k), where x and y are the quantities of two tokens, and k is a constant.
The price is determined by the ratio of the tokens in the pool, and trades shift this ratio, thus changing the price.