UniswapV2FeeAggregator
BaseHookUniswapV2FeeAggregator is a Uniswap v4 hook on Base. Brand new: its first pool went live today. Still in use: 3 trades in the last week, and 3 new pools this week.
- Contract name
- UniswapV2FeeAggregator
How this hook works
Trading taxA trading tax hook. It takes a cut of every trade, stops liquidity being added directly 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 is paid out in the same trade.
The code that does this (conductSwap):function _conductSwap(Currency output, Currency input, SwapParams calldata params, PoolId id) internal override returns (uint256, uint256, bool) { IUniswapV2Pair pair = _pair(id); bool forward = params.zeroForOne; Order memory o = _order(pair, forward, params.amountSpecified); poolManager.take(input, address(pair), o.input); poolManager.sync(output); pair.swap(forward ? 0 : o.gross, forward ? o.gross : 0, address(poolManager), ""); if (poolManager.settle() != o.gross) revert UnexpectedOutput(); if (o.fee != 0) { poolManager.mint(address(feeRecipient), output.toId(), o.fee); emit HookFeeCollected(PoolId.unwrap(id), Currency.unwrap(output), address(feeRecipient), o.fee); } return (o.gross - o.fee, o.input, true); }Liquidity can’t be added directly
Nobody can add liquidity to its pools through Uniswap directly. Liquidity only comes in through the hook’s own code.
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 price) internal override returns (bytes4) { _pair(key.toId()); return super._beforeInitialize(sender, key, price); }
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 auditpair 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.
Pools using it let the hook choose the swap fee instead of a fixed tier.
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 handled a trade: $49.16, and took its fee from a trade: $0.00000363.
- Handled a trade 3 times, worth $49.16
Latest transactions
- 0x48291229…940a0e block 66,553,973
- 0xd20f6d02…70316e block 66,547,631
- 0xb6e0f31a…763321 block 66,542,785
- Took its fee from a trade 3 times, worth $0.00000363
Latest transactions
- 0x48291229…940a0e block 66,553,973 · 1.58 KEYCAT
- 0xd20f6d02…70316e block 66,547,631 · 2.30e-9 WETH
- 0xb6e0f31a…763321 block 66,542,785 · 4.56e-10 WETH
- Registered an aggregator pool 3 times
Latest transactions
- 0xd1ad9f41…c4b835 block 66,501,605
- 0x473e1f33…0d22c8 block 66,501,582
- 0xf1b51c6e…6dbf9e block 66,501,552
Settings changes: changed the token jar (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. Dollar values count the amounts paid in ETH, stablecoins, BNB and BTC, at today’s prices.
Pools
3 totalOnly pools with trades in the last 7 days are listed here: 1 of 3. See all, newest first.