skip to content

> lab / toy

x·y=k

Push a swap through an AMM pool and watch the price slip.

One rule: the pool's two reserves multiplied together never shrink. Take MEOW out, put SOL in, and every MEOW costs more than the last one did.

🐱 SOL / MEOW pool

pool depth
x · SOL
1,000
y · MEOW
1,000,000
k = x·y
1B
1 MEOW =
0.001000 SOL
The curve x·y=k. The pool is at 1,000 SOL and 1,000,000 MEOW; this trade would move it to 1,010 SOL and 990,128 MEOW.05001K1.5K2K2.5K500K1M1.5M2M2.5Mx = SOL in the pooly = MEOW in the poolnow
x·y=k spot price (tangent) your trade
direction
SOL
a crumbmax 4,000 SOL
you get
9,871.58 MEOW
lp fee (0.3%)
0.03 SOL
spot price
0.001000 → 0.001020
your price
0.001013 SOL/MEOW
k after fees
+<0.01%
price impact0.99%

barely a ripple.

A simplified Uniswap-v2-style pool with a 0.3% LP fee taken on the way in; price impact is shown without the fee. Real pools add more fees and routing, plus everyone else trading at the same time. MEOW isn't a real token, nothing here touches a chain, and none of it is financial advice.

Command menu

Jump to a page or run a command.