# Wallet Cap

While a pool's launch guard lasts, no wallet can buy more than a set share of the token's supply. Wallet Cap is one of the core's Hook Blocks on Hookr's hook. The app offers it while the chain reads the core, and Wallet Cap's key on it, as admitted on Hookr's hook.

## What you set

| Setting | What it takes |
| --- | --- |
| Cap per wallet | 0.1% to 10% of the token's supply, in 0.1% steps. 2% by default. |
| Guard | Anti-Snipe's launch guard, at least 8 parent blocks. On a pool without a guard, adding Wallet Cap adds Anti-Snipe and its launch tax for 15 parent blocks, about 3 minutes. Removing Wallet Cap takes them off again. |

The launch turns the share into an amount of tokens from the supply it reads: a new token's whole supply, or an existing token's total supply when the launch is built. The core keeps that amount on its own grid, rounded down by less than 0.062%, for good, and the cap ends when the guard ends.

## What counts

- Each buy during the guard counts the tokens it delivers, after Auto Burn, against the wallet that pays for it: the trader Hookr's router, a gasless swap or the Uniswap router names. When a contract pays, the buy also counts against the wallet that signed the transaction (`tx.origin`). Both must have room under the cap. Tokens a wallet receives from someone else's buy or by transfer do not count, so nobody can use up another wallet's cap.
- The count is per launch. A launch is the token's pools bound in the same second, as one launch transaction binds them, and every pool of it takes the same cap, since a pool without it would be a way round it. A later launch of the same token counts from zero.
- Selling frees no room, and neither the creator's dev buy inside the launch nor arbitrage recapture counts. Every pool of a Wallet Cap launch takes arbitrage recapture, or none does: on a pool without it, the arbitrage recapture executor's legs would count against the trader whose swap set them off.
- The cap limits each paying wallet, not each person. A new paying contract does not reset its signer's count, and wallets that buy through one shared relayer or bundler share that relay's cap.

## What it runs beside

Wallet Cap runs on the core, the `HookrRules` a new launch on Hookr's hook binds unless it follows a saved hook. Anti-Snipe, dynamic fees, Auto Burn, LP Rewards and arbitrage recapture run beside it as on any pool, and so do the core's Hook Blocks that are open: Swap Cut, Exit Clock, Storm Fee, Buy/Sell Block, Sandwich Guard, Holder Pot and King of the Pool. Storm Fee replaces dynamic fees, so a pool takes one or the other. The core has no same-block round-trip check, so a pool on it takes no Buy/Sell Block that refuses same-block round trips. The core is admitted on Hookr's hook alone, so a launch on a hook of your own does not bind it, and neither does one that follows a saved hook.

A Wallet Cap pool's prizes, rebates and royalties are credited on the core, so they are claimed there.

## When a buy is refused

A buy that would take a wallet past its cap is refused, so the swap does not go through.

## For integrations

The pool's cap, in the token's raw units, sits in its settings on the core, and the guard's end is its `guardEndBlock`, a parent block. `hookr-sdk` does not carry these settings; /api/hooks/catalog lists their bounds. Read [SDK](/docs/pools/sdk).

---

This page: https://hookr.fun/docs/pools/wallet-cap. Every docs page as Markdown: https://hookr.fun/docs.md.
