Patch the pool.Shape the swap.

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.

$PATCHlaunching soon
SOL / USDCexample pool
  1. 01Dynamic fee

    Raises the fee after big moves.

  2. 02Limit order

    Fills resting orders after swaps.

Liquidityaddremove
0.30% → 0.42%

Before swap

Dynamic fee

x · y = k

Curve

SOL 150.00 → 149.25

fills 0.88 SOL

After swap

Dynamic fee → Limit order

10 SOL

you send

USDC

you receive · example pool

  • fee 0.42% · set by Dynamic fee · pool default 0.30%
  • then Limit order fills 0.88 SOL of a bid at ≤ 149.95

2 of 4 slots patched. Fee 0.42%. 10 SOL in, 1,489.99 USDC out.

How it works.Three steps, one patch.

01

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.

02

Create the pool

Two tokens, a base fee and your modules in order. The recipe is fixed at creation, so nobody can change it later.

03

Every swap runs the patch

Modules run before and after each trade. If one fails, the whole swap is cancelled and nothing moves.

Four modules, one afternoon.Built in, ready to patch.

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

SOL / USDC · example pool
Dynamic fee0x43
0.52%

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.

TWAP oracle0x01
145.88

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.

Limit order0x82
8.10 SOL bought

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.

Lockup0x10
1:40:00

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.