back to demos
AMM playground
The real Rust engine, compiled to WebAssembly and run live in your browser. Move the reserves, fee, and input size and watch the exact constant-product output update instantly, computed with the identical integer arithmetic the chain uses at settlement. Spot price and effective rate are display-only. Everything here is a simulation, read-only, no funds at risk.
lorenz/amm-playground
real WASM engine · in-browser · constant-product math
base units of the input token in the pool
base units of the output token in the pool
pool fee in basis points (1 bp = 0.01%)
base units swapped in
instantiating wasm engine…
Exact integer math: the same constant-product arithmetic the chain settles.
Simulation / read-only. No live trading, no funds at risk.
Experimental. No profitability claims.
