PrimeHashHook
EthereumPrimeHashHook is a Uniswap v4 hook on Ethereum. Brand new: its first pool went live today. Still in use: 38 trades in the last week, and 1 new pool this week.
- Contract name
- PrimeHashHook
How this hook works
Trading taxA trading tax hook. It takes 3% of every trade and only lets approved callers create pools.
Takes 3% of every trade
On top of the normal pool fee, it takes 3% of each trade. The rate is written into the code. The fee builds up in the hook until it is collected.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata, SwapParams calldata params, bytes calldata) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { if (!_ethIsSpecified(params)) { return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0); } uint256 fee = _feeOnSpecified(params); if (fee == 0) return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0); _collect(fee); // Positive specified delta = owed to the hook. For exact input it shrinks the amount swapped, // for exact output it grows the amount the pool must output. return (IHooks.beforeSwap.selector, toBeforeSwapDelta(fee.toInt128(), 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 (poolInitialized) revert PoolAlreadyInitialized(); if (sender != initializer) revert NotInitializer(); if ( !key.currency0.isAddressZero() || Currency.unwrap(key.currency1) != primeToken || key.fee != LP_FEE || key.tickSpacing != TICK_SPACING || address(key.hooks) != address(this) ) revert InvalidPoolKey(); poolInitialized = true; 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 auditWhat 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
- Took its fee from a trade 40 times
Latest transactions
- 0xb8fb107a…c7159f block 26,498,193
- 0x4f0a82c2…921c1c block 26,498,189
- 0x17ccbcce…12724b block 26,498,166
- 0x60b420f5…31e5a0 block 26,498,164
- 0x8236795e…de1c30 block 26,498,164
- 0xa18a5f4e…ee2aea block 26,498,157
- 0x895d7f9c…5ae64c block 26,498,150
- 0x66b9ec31…bf9711 block 26,498,148
- 0x9582ed1b…e6b642 block 26,498,148
- 0x2c88a73b…505a1c block 26,498,147
- Paid out a treasury 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.