AerodromeClassicAggregator
BaseAerodromeClassicAggregator is a Uniswap v4 hook on Base. Brand new: its first pool went live today. Still in use: 10 trades in the last week, and 8 new pools this week.
- Contract name
- AerodromeClassicAggregator
How this hook works
Trading taxA trading tax hook. It takes a cut of every trade, limits some actions to approved addresses and stops liquidity being added directly.
Takes a cut of every trade
On top of the normal pool fee, it keeps a share of each trade. It can never be above 0.05%. The fee is paid out in the same trade.
The code that does this (conductSwap):function _conductSwap(Currency settleCurrency, Currency takeCurrency, SwapParams calldata params, PoolId poolId) internal override returns (uint256 amountSettle, uint256 amountTake, bool hasSettled) { if (settleCurrency.isAddressZero() || takeCurrency.isAddressZero()) revert NativeCurrencyNotSupported(); address pairAddr = _activePool(poolId); poolManager.sync(settleCurrency); (amountTake, amountSettle) = _swapOnPair(pairAddr, takeCurrency, settleCurrency, params); poolManager.settle(); hasSettled = true; // Author fee from the output side, credited as an ERC-6909 claim. amountSettle becomes the user's output. uint256 authorFee; if (params.amountSpecified < 0) { // feePips <= 500 and amountSettle > 0 (checked in _swapOnPair), so the user always keeps a positive output authorFee = feeOnOutput(amountSettle); amountSettle -= authorFee; } else { uint256 wanted = uint256(params.amountSpecified); // the source was asked for grossUp(wanted); anything short of `wanted` (e.g. fee-on-transfer) is refused if (amountSettle < wanted) revert UnexpectedSwapOutputDelta(); authorFee = amountSettle - wanted; amountSettle = wanted; } if (authorFee != 0) { poolManager.mint(feeRecipient, settleCurrency.toId(), authorFee); emit HookFeeCollected(PoolId.unwrap(poolId), Currency.unwrap(settleCurrency), feeRecipient, authorFee); // …Approved addresses only
Some actions are limited to addresses on an approved list.
The code that does this (beforeInitialize):function _beforeInitialize(address, PoolKey calldata key, uint160) internal override returns (bytes4) { if (key.currency0.isAddressZero() || key.currency1.isAddressZero()) revert NativeCurrencyNotSupported(); if (key.fee != LPFeeLibrary.DYNAMIC_FEE_FLAG) revert ExternalPoolMismatch(); if (key.tickSpacing != CANONICAL_TICK_SPACING) revert ExternalPoolMismatch(); address pairAddr = IAerodromePoolFactory(factory).getPool(Currency.unwrap(key.currency0), Currency.unwrap(key.currency1), false); if (!isAllowedExternalPool[pairAddr]) revert ExternalPoolNotAllowed(); PoolKey storage existing = _canonicalPoolKeyByAddress[pairAddr]; if (address(existing.hooks) != address(0)) revert PairAlreadyHasCanonicalPool(existing.toId()); _canonicalPoolKeyByAddress[pairAddr] = key; poolIdToExternalPair[key.toId()] = pairAddr; _initializedPools.push(key); emit AggregatorPoolRegistered(key.toId()); pollTokenJar(); return IHooks.beforeInitialize.selector; }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, PoolKey calldata key, uint160) internal override returns (bytes4) { if (key.currency0.isAddressZero() || key.currency1.isAddressZero()) revert NativeCurrencyNotSupported(); if (key.fee != LPFeeLibrary.DYNAMIC_FEE_FLAG) revert ExternalPoolMismatch(); if (key.tickSpacing != CANONICAL_TICK_SPACING) revert ExternalPoolMismatch(); address pairAddr = IAerodromePoolFactory(factory).getPool(Currency.unwrap(key.currency0), Currency.unwrap(key.currency1), false); if (!isAllowedExternalPool[pairAddr]) revert ExternalPoolNotAllowed(); PoolKey storage existing = _canonicalPoolKeyByAddress[pairAddr]; if (address(existing.hooks) != address(0)) revert PairAlreadyHasCanonicalPool(existing.toId()); _canonicalPoolKeyByAddress[pairAddr] = key; poolIdToExternalPair[key.toId()] = pairAddr; _initializedPools.push(key); emit AggregatorPoolRegistered(key.toId()); pollTokenJar(); 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 auditpairAddr 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: $131.31, and took its fee from a trade: $0.0000410.
- Handled a trade 10 times, worth $131.31
Latest transactions
- 0xc0e01a03…c5ac5c block 61,757,635
- 0xa5bf8f6d…48f8bf block 61,757,289
- 0xa37de74f…298ac9 block 61,756,539
- 0xc6e2a34d…e6142d block 61,753,081
- 0x3d6fabac…c55d71 block 61,752,844
- 0x9e5de611…e2b0f4 block 61,751,957
- 0x8b223971…097eeb block 61,750,531
- 0x7c3de720…149550 block 61,750,225
- 0x53d27471…34401c block 61,750,012
- 0x943a08fc…457b36 block 61,746,222
- Took its fee from a trade 10 times, worth $0.0000410
Latest transactions
- 0xc0e01a03…c5ac5c block 61,757,635 · 0.0245 SOGNI
- 0xa5bf8f6d…48f8bf block 61,757,289 · 0.0428 SOGNI
- 0xa37de74f…298ac9 block 61,756,539 · 0.0431 SOGNI
- 0xc6e2a34d…e6142d block 61,753,081 · 0.00000900 USDT
- 0x3d6fabac…c55d71 block 61,752,844 · 0.0433 SOGNI
- 0x9e5de611…e2b0f4 block 61,751,957 · 0.0445 SOGNI
- 0x8b223971…097eeb block 61,750,531 · 0.0447 SOGNI
- 0x7c3de720…149550 block 61,750,225 · 0.0000180 USDT
- 0x53d27471…34401c block 61,750,012 · 0.0441 SOGNI
- 0x943a08fc…457b36 block 61,746,222 · 0.0000140 USDT
- Registered an aggregator pool 8 times
Latest transactions
- 0xfd7d902f…1ab360 block 61,745,919
- 0xc1c325b4…900126 block 61,745,884
- 0xc2888988…e4ab94 block 61,745,851
- 0xe635e431…f8e50b block 61,745,831
- 0x96ab3203…7ca2f4 block 61,745,788
- 0x12b594be…662bdb block 61,745,759
- 0xc7c19dfd…bb2978 block 61,745,711
- 0xcf6968ce…68c538 block 61,745,677
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.