Bonding curve x·y=k Tangent (spot price) Secant (executed price)

AMM Bonding Curve & Slippage Function — 2D Reserve-Space View

This 2D companion renders the exact constant-product invariant x·y = k as a live hyperbola in reserve space rather than as two 3D tanks: the current reserve pair is a point that slides along the curve on every swap, a trail marks recent trades, and tangent/secant lines make spot price versus executed price a geometric comparison instead of just two numbers. A second panel plots the slippage function itself — executed slippage against trade size, for both directions, computed analytically from the live reserves and fee — which the 3D version never visualizes directly.