ChooksPoolHook
BaseHookChooksPoolHook is a Uniswap v4 hook on Base. Live for 9 days. Quiet lately: no trades this week, 5 in the last month, and 2 new pools this month.
- Contract name
- ChooksPoolHook
How this hook works
Trading taxA trading tax hook. It takes a cut of every trade, controls who adds liquidity and only lets approved callers create pools.
Takes a cut of every trade
On top of the normal pool fee, it keeps a share of each trade. The fee can be changed, but never above 1%. The fee builds up in the hook until it is collected.
The code that does this (afterSwap):function _afterSwap(address, PoolKey calldata key, SwapParams calldata params, BalanceDelta delta, bytes calldata) internal override returns (bytes4, int128) { uint256 bps = feeBps; if (bps == 0) return (IHooks.afterSwap.selector, 0); bool specifiedIsCurrency0 = (params.amountSpecified < 0) == params.zeroForOne; (Currency feeCurrency, int128 unspecified) = specifiedIsCurrency0 ? (key.currency1, delta.amount1()) : (key.currency0, delta.amount0()); if (unspecified < 0) unspecified = -unspecified; uint256 fee = (uint256(uint128(unspecified)) * bps) / BPS; if (fee == 0) return (IHooks.afterSwap.selector, 0); // The returned delta charges the swapper `fee` and credits it to this // hook; minting claims for it settles the hook's side. poolManager.mint(address(this), feeCurrency.toId(), fee); emit FeeTaken(key.toId(), feeCurrency, fee); return (IHooks.afterSwap.selector, int128(uint128(fee))); }Rules for adding liquidity
It decides who can add liquidity, or when.
The code that does this (beforeAddLiquidity):function _beforeAddLiquidity( address sender, PoolKey calldata key, ModifyLiquidityParams calldata params, bytes calldata ) internal view override returns (bytes4) { // The range first: an ordinary full-range add skips the seeder lookup. if ( (params.tickLower != TickMath.minUsableTick(key.tickSpacing) || params.tickUpper != TickMath.maxUsableTick(key.tickSpacing)) && !isSeeder[sender] ) revert NotFullRange(params.tickLower, params.tickUpper); return IHooks.beforeAddLiquidity.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 sqrtPriceX96) internal override returns (bytes4) { if (sender != owner()) revert NotPoolCreator(sender); if (!key.currency0.isAddressZero() || LPFeeLibrary.isDynamicFee(key.fee)) revert BadPoolKey(); address token = Currency.unwrap(key.currency1); if (token == treasury) revert BadTreasury(); isPoolToken[token] = true; _pools.push(key.toId()); _anchor[key.toId()] = Anchor(uint32(block.timestamp), TickMath.getTickAtSqrtPrice(sqrtPriceX96)); return IHooks.beforeInitialize.selector; }Anyone can trigger payouts
Anyone can send the collected fees on to where they go, so nobody has to wait on the hook developer.
The code that does this (sweep):function sweep(Currency[] calldata currencies) external { poolManager.unlock(abi.encode(currencies)); }
Who controls it: The hook developer can change the wallets that receive its fees and the fee. The hook developer can also change: anchor drift, seeder. The code never lets the fee go above 1%. Control can be passed on but not given up. 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 auditsetFeeWhat 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 checks every deposit before it goes in.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
Across all its pools, the hook took its fee from a trade: $0.000330.
- Took its fee from a trade 5 times, worth $0.000330
Latest transactions
- 0x6544b01d…40fb0f block 61,980,620 · 12.8k COQ
- 0x8f4f687c…e8fa7a block 60,823,062 · 9.92e-8 ETH
- 0x8d2659c1…62dded block 60,823,052 · 4.3k COQ
- 0x8167860c…106e5d block 60,823,021 · 9.92e-8 ETH
- 0x6f246f91…2cab18 block 60,823,004 · 20.42 FEED
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. Dollar values count the amounts paid in ETH, stablecoins, BNB and BTC, at today’s prices.