Pick the modules
Choose up to four: a fee that reacts to the market, limit orders, a price oracle, a liquidity lock — or your own.
Solana pools you can program. Plug modules into a pool and every swap runs through them: a fee that rises when the market moves, limit orders that fill inside swaps, a fair price oracle, locked liquidity — or a module you write yourself.
Raises the fee after big moves.
Fills resting orders after swaps.
Before swap
Dynamic fee
Curve
SOL 150.00 → 149.25
After swap
Dynamic fee → Limit order
10 SOL
you send
USDC
you receive · example pool
2 of 4 slots patched. Fee 0.42%. 10 SOL in, 1,489.99 USDC out.
Choose up to four: a fee that reacts to the market, limit orders, a price oracle, a liquidity lock — or your own.
Two tokens, a base fee and your modules in order. The recipe is fixed at creation, so nobody can change it later.
Modules run before and after each trade. If one fails, the whole swap is cancelled and nothing moves.
One example pool patched with all four built-ins, run through six hours of simulated swaps under the same rules the programs use. Drag the clock.
14:20
fee for a swap at 14:20
Base 0.30%, +0.5 bps of fee per bps of average move, capped at 1.50%. The average halves every 10 minutes.
30-minute TWAP · spot 146.07
Records the price before each swap. Any program can call consult(1800) for the 30-minute mean, so a brief spike moves it only a little.
13:42 fill · 8.10 SOL at 145.71 · 1,180 of 2,920 USDC spent
A bid for 20 SOL at ≤ 146.00, placed at 12:00: 2,920 USDC in escrow. When a swap pushes the price, fee included, under the limit, after_swap fills it until the price is back at the limit.
until 16:00 · remove liquidity reverts
at 14:20
Pool created at 12:00 with a 4-hour Lockup. Until 16:00 nobody can remove liquidity, whenever they added it. Lockup only has a before-remove jack: swaps never call it.