Rule Craft

Example blueprint

Full Kit

A reference rule set that switches on all five on-chain modules at conservative values. Useful to read, heavy to trade: check the risk grade before you copy it.

Remix in composer Use for a launchExample · written by the team · not deployed

Modules

5

Royalty

20%

of add-on revenue

Pools

0

examples are not deployed

Built for

Hook Builders

This example is not on chain. To earn its royalty yourself, open it in the composer, name it and press Publish: your wallet writes your own copy to the BlueprintRegistry.

The rules, in plain words

  • LP fee set per swap, floor 0.3%, ceiling 1.5%.
  • First 60 blocks: at most 1% of supply per block, plus a 20% guard tax to LPs.
  • 0.5% of every buy's tokens is burned.
  • 0.5% of every buy's ETH is donated to in-range LPs.
  • Founding liquidity locked for 90 days.
Buy
2.5%
Sell
1.5%
Opening buy
22.5%

Permission bits

13BI
12AI
11BA
10AA
9BR
8AR
7BS
6AS
5BD
4AD
3BSΔ
2ASΔ
1AAΔ
0ARΔ

BI beforeInitialize · BS beforeSwap · AS afterSwap · ASΔ afterSwapReturnDelta

mask 0x20c4bits 100000110001004/14 on can change amounts

Where each rule runs

  1. 1

    Pool opens

    Snipe Guard
  2. ·

    Liquidity in

    Untouched.

  3. 1

    Before swap

    Size-Scaled Fee
  4. v4

    v4 swap math

    Concentrated-liquidity math in the PoolManager. No rule runs inside it.

  5. 3

    After swap

    Snipe GuardBuy BurnLP Stream
  6. ·

    Liquidity out

    Untouched.