How Smart Contracts Use Math to Power Uniswap-Style AMMs
A liquidity pool isn’t an order book. By replacing bids and asks with pure math, AMMs like Uniswap enable trustless trading on Ethereum. Here’s how the constant product formula works—and why rounding errors still cost traders.