A smart contract holding reserves of two or more tokens that traders swap against, with liquidity providers earning a fee proportional to their share of the pool.