Skip to content

Saved hooks

A named set of Hook Blocks kept on chain for Hookr's hook: what it holds, how pools follow it, and its versions.

On this page

Pools that follow a saved hook swap and pay exactly as they would without it, and saving one costs gas only.

What a saved hook holds

PartWhat it says
CoreWhich core its pools run: the standard one, or one a block brings, such as Buy/Sell Block's
Blocks allowedAny of Anti-Snipe, dynamic fees, Auto Burn, LP Rewards and the creator royalty
Fee ceilingsHookr's own, or lower
Add-on blocksUp to 4 to pick from. Each pool still runs one.
GatesUp to 4, such as the Multi-pool trade router
Arb recaptureAllowed or not
ListingPublic, so anyone can list a pool that fits, or owner-only

How a pool follows it

  • A pool names the saved hook when it opens, and is listed under it once its frozen settings fit.
  • On a public saved hook anyone can list a pool, and on an owner-only one only its owner can.
  • Anyone can drop a pool the current version no longer fits, and the owner can drop any pool.
  • A saved hook never changes a pool, holds no assets, and nothing on a swap reads it.

Versions

Saving again writes a new version, and every earlier version stays readable. A saved hook's id comes from its writer and a salt, so nobody can take another writer's id.

A hook of your own

A saved hook is also the template a hook of your own is deployed from: the same blocks at an address of your own. See Owned roots.

For integrations

  • A saved hook keeps Hookr's hook address, so its pools route like any Hookr pool.
  • An app can read a saved hook's bounds and a complete default from chain, and pre-fill a launch from it.