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.
v4 Marketplace docs

Build on v4 Marketplace

Royalties

Every swap through a v4 Marketplace pool pays each active v4 hook in its stack, in the swap's own currencies.

80% author, vests 7 days
20% burn reserve
day 0
vesting
day 1
vesting
day 2
vesting
day 3
vesting
day 4
vesting
day 5
vesting
day 6
vesting
day 7
claimable

How it is taken

After the swap, the hook stack computes each hook's share of the unspecified side (the output of an exact-input swap), mints the total as ERC-6909 claims on the PoolManager to the royalty ledger, and returns it as the hook's delta. The swapper receives that much less.

royalty_i = |unspecified| x royaltyBps_i / 10,000

Vesting

The author's 80% lands in a daily bucket and becomes claimable seven days later. Claims burn the ledger's claims and send the token itself. Unvested royalties are what repays LPs after a proven exploit.

The burn reserve

The other 20% stays in the reserve. burnBuy(path, amountIn, minOut) is open to anyone once an hour: it swaps the reserve along pools the timelock allowed, at most three hops and half a percent of price move each, into $V4M, sends 99% to the dead address and 1% to the caller. The keeper never calls it.