AeroSlipstreamAggregator
BaseAeroSlipstreamAggregator is a Uniswap v4 hook on Base. Live for 3 days. Still in use: 33 trades in the last week, and 1 new pool 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.05%. 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; _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; _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.123.
- Handled a trade 33 times, worth $1.1k
Latest transactions
- 0x9074ffb1…7951e1 block 62,583,121
- 0xfcd43d3e…f2e080 block 62,583,021
- 0x9704f2f1…1a1b6e block 62,577,778
- 0x36dfc770…bc25cc block 62,577,660
- 0x83b1b443…065fad block 62,480,998
- 0x95e68e7c…42147b block 62,451,126
- 0x3c917fc8…56ef1a block 62,451,041
- 0x917b2ce4…d74b46 block 62,427,041
- 0xc4f2943c…f7fc47 block 62,381,562
- 0x4676cb44…1c385f block 62,196,747
- Took its fee from a trade 33 times, worth $0.123
Latest transactions
- 0x9074ffb1…7951e1 block 62,583,121 · 0.00731 USDC
- 0xfcd43d3e…f2e080 block 62,583,021 · 0.0000874 ANTc
- 0x9704f2f1…1a1b6e block 62,577,778 · 0.00264 USDC
- 0x36dfc770…bc25cc block 62,577,660 · 0.0000316 ANTc
- 0x83b1b443…065fad block 62,480,998 · 0.000564 USDC
- 0x95e68e7c…42147b block 62,451,126 · 0.00675 USDC
- 0x3c917fc8…56ef1a block 62,451,041 · 0.0000810 ANTc
- 0x917b2ce4…d74b46 block 62,427,041 · 0.000455 USDC
- 0xc4f2943c…f7fc47 block 62,381,562 · 0.000525 ANTc
- 0x4676cb44…1c385f block 62,196,747 · 0.00106 ANTc
- Took its fee from a trade 33 times, worth $0.100
Latest transactions
- 0x9074ffb1…7951e1 block 62,583,121 · 0.00439 USDC
- 0xfcd43d3e…f2e080 block 62,583,021 · 0.0000524 ANTc
- 0x9704f2f1…1a1b6e block 62,577,778 · 0.00158 USDC
- 0x36dfc770…bc25cc block 62,577,660 · 0.0000190 ANTc
- 0x83b1b443…065fad block 62,480,998 · 0.000339 USDC
- 0x95e68e7c…42147b block 62,451,126 · 0.00405 USDC
- 0x3c917fc8…56ef1a block 62,451,041 · 0.0000486 ANTc
- 0x917b2ce4…d74b46 block 62,427,041 · 0.000274 USDC
- 0xc4f2943c…f7fc47 block 62,381,562 · 0.0267 USDC
- 0x4676cb44…1c385f block 62,196,747 · 0.000637 ANTc
- Registered an aggregator pool 1 time
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.