Uniswap Hook Incubator · UHI10 Hookathon
A Uniswap v4 hook that charges every swap a refundable deposit, then uses the pool’s own price to decide who keeps it.
Uniswap Hook Incubator · UHI10
A Uniswap v4 hook that charges every trade a refundable deposit, then uses the pool’s own price sixty seconds later to decide whether to give it back.
The problem
Someone swapping five hundred dollars pays the same fee as a bot that just took money off the pool. A pool has one fee and no way to tell them apart, so it charges everyone enough to survive the bot.
The small trader pays for damage they did not cause.
The insight
At the moment of a trade there is genuinely nothing to see, because whatever the trader knew has not reached the price yet.
If the price carries on moving the same way afterwards, the pool was still quoting a stale number when that trader left, and it is about to be picked off again on the same mistake.
How it works
01
Everyone pays
The pool charges its normal fee, untouched. The hook takes 25 bps more and holds it as a claim inside Uniswap’s own vault. No judgement, because the next sixty seconds have not happened.
02
The pool keeps count
It records where the swap left the price, then runs a time-weighted average of everything after. A single block cannot move that average.
03
Anyone settles it
Drift past the threshold and the deposit goes to the liquidity providers. Otherwise it returns to the trader. Whoever settles keeps 2%, so self-settling costs nothing.
Evidence · 26,209 real mainnet swaps replayed
Not a simulation. Real trades from the live USDC/ETH pool, replayed to ask what this hook would have decided. 3.2% land past the threshold.
Chosen on economics, not on hit rate
Thirty six parameter combinations were tested against what each one costs a trader carrying no information. The settings with the best headline revenue charge ordinary traders three times as much.
How it compares
Decides before the swap
PegGuard · TRIDENT · DAMM · Nezlobin Directional Fee · Arb Controller
Decides after the swap
Zero of 660 prior Hook Incubator projects settle a fee after the fact
The version that failed
It measured drift from the price the trader paid. Your own trade moves the price, and that movement bounces back, which drags every trader toward looking innocent.
Measuring from where the swap left the price removes your own footprint, and the signal appears. Found before writing any Solidity. That one choice is the difference between a mechanism that works and one that quietly does nothing.
Honest limits
Live on Unichain Sepolia
Sixty seconds later the pool’s own price decides whether you were trading on information, and the deposit either comes back to you or goes to the people whose money you traded against.
← → to navigate