Building a v4 hook? Four house hooks already earn on every swap: volatility fee, anti-snipe, agent rebate and weekend gap guard.Read the protocol.Building a v4 hook? Four house hooks already earn on every swap: volatility fee, anti-snipe, agent rebate and weekend gap guard.Read the protocol.

Build a v4 hook

01

Start from a template or your own file

Waiting

The starter holds the template, the ILog interface, a Foundry fork test, foundry.toml and remappings. Any listed hook can be your starting point too: open Storefronts and pick Start from this hook.

src/MyHook.sol
02

Compile and check the hook interface

Waiting
solc 0.8.26, optimizer 200 runs, EVM cancun. The site only compiles: your code is never run on our servers.
03

Deploy from your wallet

Waiting

Compile a contract that implements ILog first.

04

Verify the source on Sourcify

Waiting

Starts by itself once the deployment is confirmed. The standard JSON input you compiled is sent with the creation transaction.

05

List your hook

Waiting

Opens once your hook is deployed. Already deployed one elsewhere? List it from Storefronts.

06

Stake 10,000 $V4M

Waiting

A listed hook becomes active with 10,000 $V4M staked behind it and its source verified. Three failed runs in seven days burn 10% of the stake.