Hook
EthereumHook is a Uniswap v4 hook on Ethereum. Brand new: its first pool went live today. Still in use: 51 trades in the last week, and 1 new pool this week.
- Contract name
- Hook
How this hook works
Trading taxA trading tax hook. It takes 2% on buys and 4% on sells and only lets approved callers create pools.
Takes 2% on buys and 4% on sells
On top of the normal pool fee, buys pay 2% and sells pay 4%. The rates are written into the code. The tax builds up in the hook until it is collected.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata key, SwapParams calldata params, bytes calldata) external view onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { if (!initialized) revert PoolNotInitialized(); _checkKey(key); bool exactIn = params.amountSpecified < 0; bool ethSpecified = params.zeroForOne == exactIn; if (!ethSpecified) return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0); uint256 amount = _abs(params.amountSpecified); uint256 fee = exactIn ? Math.mulDiv(amount, BUY_FEE_BPS, BPS) : Math.mulDiv(amount, SELL_FEE_BPS, BPS - SELL_FEE_BPS, Math.Rounding.Ceil); return (IHooks.beforeSwap.selector, toBeforeSwapDelta(SafeCast.toInt128(int256(fee)), 0), 0); }Only approved callers create pools
New pools with this hook can only be created by approved callers, for example its own factory or launcher.
The code that does this (beforeInitialize):function beforeInitialize(address sender, PoolKey calldata key, uint160) external onlyPoolManager returns (bytes4) { if (initialized || sender != initializer) revert InvalidInitializer(); _checkKey(key); initialized = true; emit PoolInitialized(poolId); return IHooks.beforeInitialize.selector; }
Who controls it: Nobody. The hook has no admin functions, and the code cannot be changed.
Based on the hook’s published code.What do these labels mean?
Safety report
Before you build on it. Automated checks, not an auditRewards, Game: nothing there can change how trades go.What it can do
Its code executes inside each trade in pools that use it.
It can take or add tokens during a swap. Fees, burns and custom curves work this way, and so do scams.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
- Measured the swap 51 times
Latest transactions
- 0x69fbac69…ead4cb block 26,444,811
- 0x5f05a922…8f02b1 block 26,444,811
- 0x155655f0…b78c68 block 26,444,772
- 0xa254d139…bec6ab block 26,444,769
- 0x13522b52…6bbd35 block 26,444,763
- 0xc3f864a5…1d6f7c block 26,444,763
- 0x9a85184c…d139fb block 26,444,762
- 0xae75f53b…6feb67 block 26,444,755
- 0x9932befe…a4a997 block 26,444,755
- 0xd5b37abc…6f2b88 block 26,444,711
Settings changes: set up a pool (1 time).
Counted from what the hook recorded on-chain across all its pools, for every action in its published code, plus token transfers in and out of it.