Playground
Play with the math. Every formula on DeFiGrail, made interactive in one place.
Impermanent Loss
Set entry and current price and watch an LP's divergence loss against simply holding.
IL = -2.02%
HODL $12500.00 vs LP $12247.45 (Δ $-252.55, fees excluded)
P = 1.5000× · $10,000 initial position
Price Impact
See how trade size relative to pool depth drives slippage on a constant-product curve.
10% of reserve
Price impact ≈ 11.1%
Constant-product (x·y=k): impact = f / (1 − f). The deeper the pool relative to your trade, the smaller f — and impact stays near zero.
Interest Rate Curve
Move utilization across the kink and watch a lending pool's borrow rate respond.
U 80%
Rate = 10.00%
Below kink — gentle slope (base + U × m₁)
Concentrated Liquidity
Set a v3 price range and see how capital splits between the two assets.
$1000
$3000
$2000
TOKEN0 (x)
0.0041
TOKEN1 (y)
13.0986
IN RANGE — active earning
PT Pull-to-Par
Watch a Pendle principal token's price converge to par as maturity approaches.
r=5%: PT starts at 0.9524 · r=10%: PT starts at 0.9091 · r=20%: PT starts at 0.8333 — all converge to 1.00 at maturity (pull-to-par).