In AMMs, both sides of the trade are pre-funded by on-chain liquidity pools. Providing liquidity - incentivized through earning transaction fees from trading activities - allows traders to seamlessly swap between tokens on-chain in a decentralized and transparent manner with no central custody. Unlike centralized exchanges (CEXs), AMMs exist only within smart contracts on the Ethereum blockchain.