Skip to content
The poolHow it works

The pool

How it works

The invariant

A pool with reserves x_i and target weights w_i (summing to 1) keeps the weighted geometric mean prod x_i^w_i from falling. Without a fee, an arbitrageur facing outside prices s_i would move the pool exactly onto target: value in asset i equals w_i times the pool's value (Lemma 1 of the paper).

The fee (Definition 3)

A trade changes each reserve by a ratio r_i = x_i' / x_i. The program accepts it only if

ln g = g_fee * min_i ln r_i + (1 - g_fee) * sum_i w_i ln r_i  >=  1e-14

where g_fee is the pool's fee parameter (gamma_bps, default 3% for CORE). The second term is the growth of the fee-free invariant; the first charges the trade on its worst leg. Proportional deposits and withdrawals have every r_i equal, so they pay nothing. Splitting a trade into pieces never makes it cheaper (Lemma 4).

The band

Because every trade pays the fee, arbitrage stops before the target. After optimal arbitrage each realized weight sits in

[(1 - g) w_i,  g + (1 - g) w_i]

For CORE at a 3% fee, BTC (target 15%) lives between 14.55% and 17.55%. A price shock that pushes BTC to 18.0% is traded back to 17.55%, not to 15%.

What the trader pays

Worked example on a $100,000 CORE pool at target, BTC price up 24.4% (BTC weight 18.0%):

Fee 0Fee 3%
BTC weight after arbitrage15.00%17.55%
Arbitrage profit$330.55$7.16
Pool value after$103,327.98$103,651.38

The 3% fee keeps $323.40 in the pool that a fee-free pool would have handed to the arbitrageur. Numbers from the closed-form optimal arbitrage in spike/g1_g3m.py.

Glide

A fund can move its target linearly between two allocations, w(t) = w_from + (w_to - w_from) * (t - start) / (end - start). Reserves never change when the target moves, so holder value is continuous and arbitrage walks the pool to the new weights inside the fee band. The quote leg absorbs rounding so weights always sum to exactly one.

The index and the royalty gate

The pool prices its own share without an oracle:

index = reserve_quote / w_quote / supply

Arbitrage keeps the quote leg near w_quote of the pool's value, so this is the pool's value per share in USDC. It is smoothed over one day (ema_step, a state lasting zero seconds moves it zero) and compared with its high-water mark on every trade.