An AMM whose pricing shape adapts to volatility to balance low slippage with resilience in fast markets.
Map short‑term volatility to curve parameters, flat when calm and product‑like when volatile to protect against depletion.
EWMA of returns avoids window jumps and reacts quickly.
Sigmoid mapping from σ to curve exponent creates smooth transitions.
Robust Newton / binary‑search solvers compute swap outputs for convex invariants.
Short-horizon EWMA volatility, a smooth mapping \(n(\sigma)\) from volatility to curve shape, and numerical execution on convex invariants.
Rolling-window standard deviation reacts in step-changes as large moves enter/exit the window. A time‑weighted EWMA (e.g., RiskMetrics‑style with decay \(\lambda\)) downweights stale data and responds faster to new regimes—more suitable for on‑chain control loops.
We interpolate between near constant‑sum (flat around mid) in calm regimes and product‑like in volatile regimes using a smooth, monotone map:
Bounds \(n_{\max}\lesssim 1\) (flatter curve) and \(n_{\min}\to 0\) (product‑like) keep transitions continuous and arbitrage‑resistant.
For an invariant like \(x^n + y^n = C\), solve trade outputs via Newton/binary search; many practical AMMs (e.g., stable‑swap forms) rely on such solvers.
Dynamic \(n(\sigma)\) compresses slippage and IL in calm markets and relaxes toward constant‑product under stress—seeking fee capture in chop with resilience in trends.