Base mainnet

Every token here carries its rules: on every transfer for ERC-20 tokens, on every swap for B20 tokens.

Fig. 04 — Specification

How Interpool works.
Tokens that carry their rules.

Overview#

Interpool launches tokens that carry rules, called hooks. A creator picks one or two hooks from a catalog of 24, sets them within their bounds, and launches. From then on the token is checked against those hooks, and a move that breaks one is refused, with the reason. On an ERC-20 token that covers every movement: buy, sell or wallet transfer. On a B20 token it covers the swaps of the token's pool.

The token is born in its own Uniswap v4 pool and trades there from its first block. There is no bonding curve to fill and no migration step.

Token standards#

A creator chooses one of two standards at launch. The choice is stored with the token and cannot be changed.

ERC-20B20
What it isA token contract deployed by the launchBase's native token standard, created by the chain's own factory at 0xB20f…0000. Not a contract, no transfer code
Where the rules runInside the token, on every transferOn the swaps of the token's home pool
Hooks it can carryAll 24The 12 pool-level hooks
Wallet-to-wallet sendsChecked by the hooksFree, no rule applies
Other pools and venuesSeen by the token, can be refusedNot seen, the rules do not apply there

The 12 pool-level hooks

One buy per block, Buy size cap, Buy cooldown, Buys first, Market hours, Pulse, Ping pong, Circuit breaker, Momentum brake, Last buyer pot, Floor builder, Buyback and burn. The other 12 cap balances, tax or burn transfers, or track each holder's bag. They need the token's own transfer code, so the launch refuses them on a B20 with hook needs an ERC-20 token.

What a B20 launch does, and its limits

  • The launch contract mints the fixed 1,000,000,000 supply, gives the pool hook the burn role (for buybacks), then renounces every power. Nobody can mint, pause, seize, blocklist or change a policy on the token.
  • A B20 moves freely between wallets and can be traded on other pools. Its rules only bind swaps on its home pool.
  • Per-wallet pool rules (cooldown, one buy per block, the pot's leader) follow the wallet that signed the transaction, tx.origin, because a pool cannot see who a router trades for.
  • The trade fee is the same as for an ERC-20: 0.5% platform, or the 1% to 10% tax a payout hook sets.
  • The LP position is held in the Interpool LP locker, exactly as for an ERC-20 token.

How a hook runs#

On Solana, a transfer hook is a program the token program calls. On an EVM chain, an ERC-20 token contract does it itself: its transfer function calls the token's hooks before moving any balance. This is the ERC-20 mode.

every transfer, in the token
_update(from, to, amount):
    kind = classify(from, to, amount)        // buy, sell, send, other venue
    for hook in hooks: hook.check(kind, from, to, amount)   // reverts to refuse
    move balances
    for hook in hooks: hook.record(kind, from, to, amount)

Knowing a buy from a sell

In Uniswap v4 every pool keeps its tokens in one shared contract, so a transfer out of it does not say which pool it came from. The launch hook fixes that: on each swap in a Interpool pool, it writes in transient storage how many tokens that swap moves, and in which direction. When the token then moves in or out of the shared contract, it spends that credit.

  • Covered by a credit: a buy or a sell on the token's own pool.
  • Not covered: the tokens came from or went to another pool, other venue.
  • Neither side is the pool: a wallet-to-wallet send.
  • Moves made by the launch contract itself (seeding the pool, collecting fees) skip the hooks, so no hook can freeze its own pool.

The pool path, for a B20

A B20 token has no transfer code to put a hook in. Its rules run in the pool instead: on each swap of the token's home pool, the launch hook calls the same rules with the swap's real size and the price it left. A refusal reverts the whole swap.

every swap on the home pool, for a B20
afterSwap(swap):
    wallet = tx.origin                       // the wallet that signed
    kind   = swap buys the token ? buy : sell
    rules.check(kind, wallet, amount)        // reverts to refuse
    rules.record(kind, wallet, amount)

Nothing runs on a wallet-to-wallet send, or on a trade in any other pool. That is why only the pool-level hooks are offered on a B20.

Launching#

  • A token standard (ERC-20 or B20), name, ticker, optional description, and one or two hooks with their settings.
  • The launch contract refuses a hook the chosen standard cannot carry.
  • The launch contract refuses any setting outside a hook's bounds.
  • 1,000,000,000 tokens are minted, all of them into one position of the pool. None go to the creator.
  • Hooks and settings are stored with the token and can never be changed.
  • That one position is a Uniswap v4 position NFT, minted by Uniswap's own PositionManager on Base into the Interpool LP locker. The locker is the launch contract itself: it holds the position of every token launched here.
  • The locker has an owner. Two functions on it let that owner act: locker moves a position NFT out of the locker, and claim moves tokens that have reached it. Whoever holds the NFT controls the liquidity, and each token page shows who holds it right now.

The opening price

Every token opens at a $5,000 market cap. The launch contract reads ETH/USD from Chainlink's feed on Base and turns $5,000 into ETH at that moment, about 2.3 ETH at current prices. If the feed's last answer is more than an hour old, launches are blocked until it updates. Tokens already trading are not affected: the feed is only read at launch.

Fees#

Every buy and sell pays a fee in ETH, the same for every wallet. A token with no payout hook pays the 0.5% platform fee and nothing else. A token with a payout hook pays the tax its creator set, from 1% to 10%: the platform's 0.5% comes out of it and the rest goes to the hook.

HookWhere its tax goes
Holder rewardsThe tax, less the platform's 0.5%, paid to holders pro rata
Last buyer potThe tax, less the platform's 0.5%, paid to the last buyer when the timer ends
Floor builderThe tax, less the platform's 0.5%, placed as locked liquidity under the price
Buyback and burnThe tax, less the platform's 0.5%, spent buying the token and burning it

Some hooks add a tax in the token on top, burned unless the hook says otherwise.

Combining hooks#

  • Hooks run in the order the creator chose them.
  • The first refusal wins, and its reason is the one shown.
  • Taxes from several hooks add up, to 90% of a transfer at most.
  • Two payout hooks add their taxes, 10% at most, and share what is left after the platform's 0.5% in proportion.

The hooks#

Each one, with the bound the launch enforces and whether a B20 token can carry it. Every hook works on an ERC-20. Open any of them in the catalog to watch it run.

HookGroupB20Bound
Wallet capFair launchERC-20 onlyStarts at 0.1% or more and reaches 100% within 30 days.
One buy per blockFair launchYesAt least one buy per block always goes through.
Opening taxFair launchERC-20 onlyEnds within 60 minutes of launch.
Buy size capFair launchYesStarts at 0.05% or more and lifts within 7 days.
Buy cooldownFair launchYesNever longer than 10 minutes.
Buys firstFair launchYesThe window lasts 60 minutes at most.
Sell capSellingERC-20 onlyAt least 1% per window, and a window lasts 7 days at most.
Buyer vestingSellingERC-20 onlyEach buy fully unlocks within 7 days.
Minimum holdSellingERC-20 onlyNever longer than 24 hours.
Patience discountSellingERC-20 only30% at most, gone within 7 days of holding.
Home pool onlyWhere it movesERC-20 onlyThe home pool can never be closed.
No wallet transfersWhere it movesERC-20 onlyBuying and selling on the pool always stay open.
Transfer burnWhere it movesERC-20 only10% at most.
Market hoursWhen it tradesYesOpen at least 4 hours a day.
PulseWhen it tradesYesOpen at least a tenth of the time.
Ping pongWhen it tradesYesEach phase lasts 60 minutes at most.
Circuit breakerMarket physicsYesA pause lasts 30 minutes at most, then trading resumes.
Breathing capMarket physicsERC-20 onlyThe cap never drops below 0.5% of supply.
Momentum brakeMarket physicsYesA trade is never limited below a tenth of the base size.
Holder rewardsWho gets paidERC-20 onlyPaid out pro rata, with no address excluded.
Diamond bonusWho gets paidERC-20 only20% at most, split with no address excluded.
Last buyer potWho gets paidYesThe pot is always paid to a buyer; nothing stays locked.
Floor builderSupplyYesPlaced liquidity can never be withdrawn.
Buyback and burnSupplyYesBurned tokens are gone for good; the budget cannot be withdrawn.

Guarantees#

  • Fixed at launch. No editable hook, no upgrade, no owner over a live token's rules. The launch liquidity is separate: its position NFT sits in the Interpool LP locker, and the locker's owner can withdraw it.
  • No wallet singled out. No hook takes an address as a setting.
  • Every limit ends or eases. Each sell limit has a minimum or an end date in its bounds.
  • The pool is never blocked. The protocol's own moves skip the hooks.

Not offered, on purpose

  • Blocklists and allowlists. A hook that names wallets can stop exactly the wallets it wants from selling. That is how a honeypot works, so no hook here can target an address.
  • Editable hooks. A rule that can be changed after launch can be changed into a trap. Hooks and their settings are fixed when the token launches.
  • Owner-controlled hooks. No pause switch, no admin wallet, no DAO vote over a live token. Nobody holds a key over a token's rules.
  • Unbounded sell locks. Every limit on selling has a floor or an end date written into its bounds. A holder can always get out, even if slowly.

Known limits#

  • On a B20 token the rules bind swaps on its home pool only: sends between wallets and trades on other pools are not checked, and per-wallet rules follow the wallet that signed the transaction.
  • The other limits below are about hooks in transfer code, the ERC-20 mode.
  • A per-wallet rule sees addresses, not people. Splitting a bag across wallets gets around wallet caps and sell limits, as it does everywhere.
  • A router or aggregator that receives tokens and passes them on is seen as a wallet in between, and can be refused where a direct trade would pass.
  • Bridges, centralized exchanges and lending markets move tokens the hooks may refuse. Tokens with venue or transfer hooks will not work there.
  • A hook call on each transfer costs gas, from a few thousand to a few tens of thousands per transfer. On Base that is a fraction of a cent.
  • The buyback fires once its budget reaches 0.0005 ETH, and the floor is built at most once an hour. Anyone can trigger either.
  • Uniswap v4 lets a trader keep tokens as claims inside the pool contract instead of withdrawing them. Withdrawing them later counts as another venue.

Status#

  • Front: built, reading the chain.
  • Target chain: Base (Uniswap v4 PoolManager 0x4985…2b2b, official PositionManager, Chainlink ETH/USD).
  • Contracts: written, tested on a Base fork. Not deployed.
  • Audit: none yet.