Automated Market Maker — Constant-Product Liquidity Pool
Interactive 3D constant-product AMM (x·y=k): swap tokens through a live liquidity pool, watch the reserve curve and price move, and read out slippage, fees and impermanent loss in real time.
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.
Interactive 3D constant-product AMM (x·y=k): swap tokens through a live liquidity pool, watch the reserve curve and spot price shift, and read out slippage, fees and impermanent loss in real time.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install