Catalog

Rule blocks

What the root hook can do today. Each block is a switch with its own fields; a pool freezes its choice when it opens.

Build with these

Launch Guard

new token · paid to the creator

For the first minutes of a launch, buys pay a tax that starts high and falls in a straight line to zero, and the quote spent per block is capped. Outside liquidity waits until the window closes. Works on exact-output buys too.

~45K gas per buy while open

Fields
guardSecondsLength of the window, up to 7 days
snipeTaxPipsTax on buys at the open; falls linearly to zero
maxBuyPerBlockQuote that may be bought per block; zero for no cap

Dynamic Fee

any pool · paid to in-range LPs

The fee climbs from the base rate toward a ceiling as a trade grows against the depth in range. Small trades pay the base fee; a trade that would move the price pays for it, and the people it moves the price against are the ones paid.

~12K gas per swap

Fields
maxFeePipsFee ceiling, up to 20 %
surgeSens1 to 10: a trade worth 1/sens of in-range depth reaches the ceiling

Directional Fee

any pool · paid to the creator

One rate for buys, another for sells, both taken in the quote currency in every swap direction, so the creator is paid in ETH or USDG and never has to sell the token to be paid.

~30K gas per swap

Fields
buyTaxPipsCreator fee on buys
sellTaxPipsCreator fee on sells

LP Rewards

any pool · paid to in-range LPs

On top of the LP fee, a slice of each swap is donated to the positions in range at that moment, in the quote currency. Both buys and sells feed it.

~40K gas per swap

Fields
lpPipsShare of every swap donated to in-range liquidity

Nth-buy Pot

any pool · paid to the Nth buyer

Nothing is random: the counter is on chain, moves at most once per block, and the buy that brings it to N takes the pot. It works through any router, with the winner named by the swap or falling back to the sender of the transaction.

~50K gas per buy

Fields
potPipsShare of every buy added to the pot
potEveryNThe Nth qualifying buy wins, N from 2 to 100,000
potMinBuySmallest buy that advances the counter
Not built yet
Designed

Limit-order block

Resting orders filled by the hook as the price crosses them, with no keeper.

Designed

Tokenized-stock hours

A pool that widens its fee outside market hours for pairs quoted in a tokenized share.

Idea

Volume tiers

A directional fee that steps down as a pool's lifetime volume grows.

Everything a block takes is capped at 30 % of a swap in total, and the LP fee at 20 %. The contract rejects a rule set above either ceiling.