Reserve A Reserve B x·y=k curve
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Automated Market Maker — Constant-Product Liquidity Pool

This simulator renders the exact mechanism behind decentralized exchanges like Uniswap: two token reserves held in a pool, bound by the constant-product invariant x·y = k. Two 3D tanks show the live reserves, a hyperbolic curve traces every point the pool could sit at, and a marker moves along it as you swap. Fire a trade in either direction with the size slider and watch the price shift, particles flow from one tank to the other, and live readouts report the executed slippage against the pre-trade spot price — plus the impermanent loss a liquidity provider would be sitting on at the current price ratio, versus simply holding both tokens.