BuzzchainCanonicalUniswapV4Hook
EthereumBuzzchainCanonicalUniswapV4Hook is a Uniswap v4 hook on Ethereum. Brand new: its first pool went live today. Active: 278 trades in the last week, and 1 new pool this week.
- Contract name
- BuzzchainCanonicalUniswapV4Hook
How this hook works
Trading taxA trading tax hook. It takes a cut of every trade, manages its own liquidity and burns tokens.
Takes a cut of every trade
On top of the normal pool fee, it keeps a share of each trade. The fee builds up in the hook until it is collected.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata, IPoolManager.SwapParams calldata params, bytes calldata) external view onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { // A positive specified delta shrinks an exact input or grows an exact output by the fee, which the hook // is owed and takes in `afterSwap`. return (IHooks.beforeSwap.selector, toBeforeSwapDelta(_specifiedFee(params).toInt128(), 0), 0); }Manages its own liquidity
It adds and removes liquidity itself, so it can own part or all of the pool.
The code that does this (unlockCallback):function unlockCallback(bytes calldata data) external onlyPoolManager returns (bytes memory) { if (!launched) revert NotLauncher(); (PoolKey memory key, int24 tickLower, int24 tickUpper, uint128 liquidity) = abi.decode(data, (PoolKey, int24, int24, uint128)); (BalanceDelta delta,) = POOL_MANAGER.modifyLiquidity( key, IPoolManager.ModifyLiquidityParams({ tickLower: tickLower, tickUpper: tickUpper, liquidityDelta: int256(uint256(liquidity)), salt: bytes32(0) }), "" ); // The range lies entirely below the current price, so the position holds only BUZZ and no ETH is owed. if (delta.amount0() != 0) revert InvalidRange(); uint256 owed = uint256(-int256(delta.amount1())); POOL_MANAGER.sync(key.currency1); BUZZ.transfer(address(POOL_MANAGER), owed); POOL_MANAGER.settle(); return ""; }Burns tokens
It destroys some tokens (or sends them to an address nobody controls), so there are fewer of them.
The code that does this (afterSwap):function afterSwap( address sender, PoolKey calldata, IPoolManager.SwapParams calldata params, BalanceDelta delta, bytes calldata ) external onlyPoolManager returns (bytes4, int128) { (uint256 ethFee, uint256 buzzFee, uint256 unspecifiedFee) = _swapFees(params, delta); if (ethFee != 0) { POOL_MANAGER.take(Currency.wrap(address(0)), address(this), ethFee); // Never run treasury code inside a swap: the pool manager is unlocked here, so code at the treasury (a // contract, or an EIP-7702 delegation) could make the swap revert through it. A codeless account runs // nothing on receipt, and the call gets only the 2,300-gas stipend. if (TREASURY.code.length != 0 || !_payTreasury(ethFee, 0)) { pendingTreasuryEth += ethFee; emit TreasuryPaymentDeferred(ethFee); } } if (buzzFee != 0) { POOL_MANAGER.take(Currency.wrap(address(BUZZ)), address(this), buzzFee); BUZZ.burn(buzzFee); } emit SwapFee(sender, params.zeroForOne, buzzFee, ethFee); return (IHooks.afterSwap.selector, unspecifiedFee.toInt128()); }Only the hook creates its pools
Nobody can create a pool with this hook directly. Pools are only created through the hook’s own code.
Anyone can trigger payouts
Anyone can collect the rewards it has built up, so nobody has to wait on the hook developer.
The code that does this (harvest):function harvest() external returns (uint256 amount) { amount = address(this).balance; if (amount == 0) revert NothingToHarvest(); pendingTreasuryEth = 0; if (!_payTreasury(amount, gasleft())) revert TreasuryPaymentFailed(); emit Harvested(msg.sender, amount); }
Who controls it: The pool creator can change when trading opens. 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 audittreasury on every trade.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
- Took its fee from a trade 403 times
Latest transactions
- 0x52942a5a…c553fc block 26,500,662
- 0x42ee3e25…8ca72d block 26,500,661
- 0xd6c4816d…8fb84e block 26,500,661
- 0x3ba9f198…335b90 block 26,500,661
- 0x42e0f608…4c8366 block 26,500,661
- 0x25f4a82a…cc0026 block 26,500,661
- 0xf269cc31…4f8321 block 26,500,661
- 0xd7169eb9…b4f5f2 block 26,500,661
- 0xed9eee4e…d7b129 block 26,500,661
- 0xa1f0a520…ef9904 block 26,500,661
- Burned tokens 279 times
Latest transactions
- 0xd3c6742d…b348d7 block 26,500,647 · 121.64 BUZZ
- 0x29260b55…f10cf3 block 26,500,647 · 5.6k BUZZ
- 0x430846e2…ef24b6 block 26,500,647 · 323.09 BUZZ
- 0x6661f522…439e80 block 26,500,647 · 649.41 BUZZ
- 0xf48ed843…d3b19b block 26,500,647 · 2.0k BUZZ
- 0xfd109abc…e076b7 block 26,500,645 · 394.77 BUZZ
- 0xf8d17816…d9861d block 26,500,645 · 571.08 BUZZ
- 0x7fb779ed…320740 block 26,500,645 · 673.54 BUZZ
- 0xbcd0d09c…a6249c block 26,500,645 · 1.7k BUZZ
- 0x88cd696a…fdc9b9 block 26,500,645 · 689.76 BUZZ
- Handled trade money (this hook holds the pool’s funds) 278 times
Latest transactions
- 0xd3c6742d…b348d7 block 26,500,647 · 121.64 BUZZ
- 0x29260b55…f10cf3 block 26,500,647 · 5.6k BUZZ
- 0x430846e2…ef24b6 block 26,500,647 · 323.09 BUZZ
- 0x6661f522…439e80 block 26,500,647 · 649.41 BUZZ
- 0xf48ed843…d3b19b block 26,500,647 · 2.0k BUZZ
- 0xfd109abc…e076b7 block 26,500,645 · 394.77 BUZZ
- 0xf8d17816…d9861d block 26,500,645 · 571.08 BUZZ
- 0x7fb779ed…320740 block 26,500,645 · 673.54 BUZZ
- 0xbcd0d09c…a6249c block 26,500,645 · 1.7k BUZZ
- 0x88cd696a…fdc9b9 block 26,500,645 · 689.76 BUZZ
- Launched a new token 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.