AeroSlipstreamAggregator
BaseAeroSlipstreamAggregator is a Uniswap v4 hook on Base. Live for 1 day. Still in use: 29 trades in the last week, and 12 new pools this week.
- Contract name
- AeroSlipstreamAggregator
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.25%. The fee is paid out in the same trade.
The code that does this (uniswapV3SwapCallback):function uniswapV3SwapCallback(int256 amount0Delta, int256 amount1Delta, bytes calldata data) external override { (PoolId poolId, bool isQuote) = abi.decode(data, (PoolId, bool)); if (isQuote) revert QuoteRevert(amount0Delta, amount1Delta); address expectedPool = _transientExpectedPool(); if (expectedPool == address(0)) revert CallbackOutsideActiveSwap(); if (msg.sender != expectedPool) revert UnauthorizedCallback(); if (PoolId.unwrap(poolId) != _transientExpectedPoolId()) revert UnauthorizedCallback(); if (poolIdToExternalPool[poolId] != msg.sender) revert UnauthorizedCallback(); PoolKey storage canonical = _canonicalPoolKeyByAddress[msg.sender]; Currency owedCurrency; uint256 owedAmt; if (amount0Delta > 0 && amount1Delta <= 0) { owedCurrency = canonical.currency0; owedAmt = uint256(amount0Delta); } else if (amount1Delta > 0 && amount0Delta <= 0) { owedCurrency = canonical.currency1; owedAmt = uint256(amount1Delta); } else { revert UnexpectedSwapOutputDelta(); } _setTransientSwapInputPaid(owedAmt); poolManager.take(owedCurrency, msg.sender, owedAmt); }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 sqrtPriceX96) internal override returns (bytes4) { if (sqrtPriceX96 != SQRT_PRICE_1_1) revert InvalidSqrtPrice(sqrtPriceX96); if (key.currency0.isAddressZero() || key.currency1.isAddressZero()) revert NativeCurrencyNotSupported(); if (key.fee != LPFeeLibrary.DYNAMIC_FEE_FLAG) revert ExternalPoolMismatch(); address token0 = Currency.unwrap(key.currency0); address token1 = Currency.unwrap(key.currency1); address poolAddr = IPharaohV3Factory(factory).getPool(token0, token1, key.tickSpacing); if (poolAddr == address(0)) revert ExternalPoolNotFound(); if (!isAllowedExternalPool[poolAddr]) revert ExternalPoolNotAllowed(); if (IUniswapV3Pool(poolAddr).token0() != token0 || IUniswapV3Pool(poolAddr).token1() != token1) { revert ExternalPoolMismatch(); } if (IUniswapV3Pool(poolAddr).tickSpacing() != key.tickSpacing) revert ExternalPoolMismatch(); PoolKey storage existing = _canonicalPoolKeyByAddress[poolAddr]; if (address(existing.hooks) != address(0)) revert PairAlreadyHasCanonicalPool(existing.toId()); _canonicalPoolKeyByAddress[poolAddr] = key; PoolId id = key.toId(); poolIdToExternalPool[id] = poolAddr; poolIdToFeePips[id] = externalPoolFeePips[poolAddr]; _initializedPools.push(key); emit AggregatorPoolRegistered(id); 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 sqrtPriceX96) internal override returns (bytes4) { if (sqrtPriceX96 != SQRT_PRICE_1_1) revert InvalidSqrtPrice(sqrtPriceX96); if (key.currency0.isAddressZero() || key.currency1.isAddressZero()) revert NativeCurrencyNotSupported(); if (key.fee != LPFeeLibrary.DYNAMIC_FEE_FLAG) revert ExternalPoolMismatch(); address token0 = Currency.unwrap(key.currency0); address token1 = Currency.unwrap(key.currency1); address poolAddr = IPharaohV3Factory(factory).getPool(token0, token1, key.tickSpacing); if (poolAddr == address(0)) revert ExternalPoolNotFound(); if (!isAllowedExternalPool[poolAddr]) revert ExternalPoolNotAllowed(); if (IUniswapV3Pool(poolAddr).token0() != token0 || IUniswapV3Pool(poolAddr).token1() != token1) { revert ExternalPoolMismatch(); } if (IUniswapV3Pool(poolAddr).tickSpacing() != key.tickSpacing) revert ExternalPoolMismatch(); PoolKey storage existing = _canonicalPoolKeyByAddress[poolAddr]; if (address(existing.hooks) != address(0)) revert PairAlreadyHasCanonicalPool(existing.toId()); _canonicalPoolKeyByAddress[poolAddr] = key; PoolId id = key.toId(); poolIdToExternalPool[id] = poolAddr; poolIdToFeePips[id] = externalPoolFeePips[poolAddr]; _initializedPools.push(key); emit AggregatorPoolRegistered(id); 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 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.
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: $1.1k, and took its fee from a trade: $0.00403.
- Handled a trade 29 times, worth $1.1k
Latest transactions
- 0x81d5cff8…2011bf block 61,460,705
- 0x8c3e6dac…10c1f0 block 61,451,372
- 0xc4dfc54b…124513 block 61,434,325
- 0xba6752c5…60fafd block 61,424,471
- 0x6f4339db…b1ab44 block 61,406,297
- 0xbcdb11a5…4291d2 block 60,958,027
- 0xcb59289b…6f07e8 block 60,957,981
- 0x4c846764…2f11b1 block 60,957,953
- 0x9cac279c…a6d116 block 60,957,900
- 0x54055228…cac7a2 block 60,957,877
- Took its fee from a trade 29 times, worth $0.00403
Latest transactions
- 0x81d5cff8…2011bf block 61,460,705 · 0.00267 NVDAc
- 0x8c3e6dac…10c1f0 block 61,451,372 · 0.000679 NVDAc
- 0xc4dfc54b…124513 block 61,434,325 · 0.00180 NVDAc
- 0xba6752c5…60fafd block 61,424,471 · 0.000679 NVDAc
- 0x6f4339db…b1ab44 block 61,406,297 · 0.00707 PLTRc
- 0xbcdb11a5…4291d2 block 60,958,027 · 0.000373 USDC
- 0xcb59289b…6f07e8 block 60,957,981 · 0.00000253 PLTRc
- 0x4c846764…2f11b1 block 60,957,953 · 0.000373 USDC
- 0x9cac279c…a6d116 block 60,957,900 · 6.00e-7 MUc
- 0x54055228…cac7a2 block 60,957,877 · 0.000373 USDC
- Took its fee from a trade 29 times, worth $0.000540
Latest transactions
- 0x81d5cff8…2011bf block 61,460,705 · 0.000532 NVDAc
- 0x8c3e6dac…10c1f0 block 61,451,372 · 0.000136 NVDAc
- 0xc4dfc54b…124513 block 61,434,325 · 0.000360 NVDAc
- 0xba6752c5…60fafd block 61,424,471 · 0.000136 NVDAc
- 0x6f4339db…b1ab44 block 61,406,297 · 0.000846 PLTRc
- 0xbcdb11a5…4291d2 block 60,958,027 · 0.0000450 USDC
- 0xcb59289b…6f07e8 block 60,957,981 · 3.10e-7 PLTRc
- 0x4c846764…2f11b1 block 60,957,953 · 0.0000450 USDC
- 0x9cac279c…a6d116 block 60,957,900 · 8.00e-8 MUc
- 0x54055228…cac7a2 block 60,957,877 · 0.0000450 USDC
- Registered an aggregator pool 12 times
Latest transactions
- 0xc6ff7286…3f31b7 block 60,956,940
- 0xe80bcbb7…2060ca block 60,956,900
- 0x2a667f2c…ffe76c block 60,956,858
- 0x1824e8c1…bbbe3a block 60,956,810
- 0xa888b1fa…0ceb06 block 60,956,760
- 0x4fa337de…92e0d9 block 60,956,711
- 0xf83506bf…5e232a block 60,956,656
- 0x1403586a…2fe3f1 block 60,956,471
- 0x5246d066…6fd4f7 block 60,956,430
- 0x1231d3ce…4b5134 block 60,956,391
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.