FeeHook
RobinhoodFeeHook is a Uniswap v4 hook on Robinhood Chain. Live for 1 day. Still in use: 16 trades in the last week, and 7 new pools this week.
- Contract name
- FeeHook
How this hook works
Trading taxA trading tax hook. It takes a tax on trades, charges more right after launch and controls who removes liquidity.
Takes a tax on trades
On top of the normal pool fee, it keeps part of each trade as a tax. The tax builds up in the hook until it is collected.
The code that does this (beforeSwap):function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata p, bytes calldata) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { if (p.amountSpecified >= 0) return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0); // exact-output: handled in afterSwap uint256 amountIn = uint256(-p.amountSpecified); uint24 f = currentFee(sender, key, p.zeroForOne); uint256 fee = (amountIn * f) / 1_000_000; if (fee == 0) return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, 0); if (fee > uint256(uint128(type(int128).max))) revert FeeTooLarge(); // the PoolManager's amounts are signed 128-bit: never truncate silently _collect(key, p.zeroForOne, fee, f); return (IHooks.beforeSwap.selector, toBeforeSwapDelta(int128(uint128(fee)), 0), 0); }Higher at launch
The tax starts higher right after launch and comes down over time, which makes it costly for bots to buy first.
The code that does this (currentFee):function currentFee(address sender, PoolKey calldata key, bool zeroForOne) public view returns (uint24) { if (sender == launcher || !zeroForOne) return BASE_FEE; uint256 t = block.timestamp - launchedAt[key.toId()]; if (t >= WINDOW) return BASE_FEE; return uint24(START_FEE - (uint256(START_FEE - BASE_FEE) * t) / WINDOW); }Rules for removing liquidity
It decides who can remove liquidity, or when.
The code that does this (beforeRemoveLiquidity):function beforeRemoveLiquidity(address sender, PoolKey calldata, ModifyLiquidityParams calldata params, bytes calldata) external view onlyPoolManager returns (bytes4) { if (sender == launcher && params.liquidityDelta < 0) revert LiquidityLocked(); return IHooks.beforeRemoveLiquidity.selector; }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 (sender != launcher) revert OnlyLauncher(); launchedAt[key.toId()] = uint64(block.timestamp); return IHooks.beforeInitialize.selector; }
Who controls it: The pool creator can call: sweep. 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 before liquidity is removed, so it can delay or refuse LP exits.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
- Took its fee from a trade 16 times
Latest transactions
- 0x98c10850…7f2a55 block 122,084,723
- 0x589fe494…3df65f block 122,067,987
- 0x2d32501c…682d85 block 122,065,861
- 0xda8c2023…61c601 block 122,025,112
- 0xe1728296…9897ef block 122,012,385
- 0xae6c3fd9…827029 block 122,004,855
- 0x9923d6ba…c23eeb block 122,001,857
- 0x464f20f8…b30ecc block 122,001,358
- 0xc8d9544e…302ad1 block 122,000,544
- 0xb767d3b6…d272b4 block 121,935,432
- Handled trade money (this hook holds the pool’s funds) 6 times
Latest transactions
- 0x589fe494…3df65f block 122,067,987 · 3.9k TEST1
- 0xda8c2023…61c601 block 122,025,112 · 372.00 TEST1
- 0xae6c3fd9…827029 block 122,004,855 · 743.99 TEST1
- 0x464f20f8…b30ecc block 122,001,358 · 743.99 TEST1
- 0xb767d3b6…d272b4 block 121,935,432 · 2.3k TEST1
- 0xc7b78916…9b9eeb block 121,149,773 · 1.9k PHONE1
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.