MaverickV2Aggregator
ArbitrumHookMaverickV2Aggregator is a Uniswap v4 hook on Arbitrum. Live for 1 day. Active: 99 trades in the last week, and 3 new pools this week.
- Contract name
- MaverickV2Aggregator
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 (maverickV2SwapCallback):function maverickV2SwapCallback(IERC20 tokenIn, uint256 amountIn, uint256 amountOut, bytes calldata data) external override { (PoolId poolId, bool isQuote) = abi.decode(data, (PoolId, bool)); if (isQuote) revert QuoteRevert(amountIn, amountOut); address expectedPool = _transientExpectedPool(); if (expectedPool == address(0)) revert CallbackOutsideActiveSwap(); if (msg.sender != expectedPool) revert UnauthorizedCallback(); if (poolIdToExternalPool[poolId] != msg.sender) revert UnauthorizedCallback(); PoolKey storage canonical = _canonicalPoolKeyByAddress[msg.sender]; address tokenInAddr = address(tokenIn); if (tokenInAddr != Currency.unwrap(canonical.currency0) && tokenInAddr != Currency.unwrap(canonical.currency1)) { revert UnauthorizedCallback(); } if (amountIn == 0) revert UnexpectedSwapOutputDelta(); _setTransientSwapInputPaid(amountIn); poolManager.take(Currency.wrap(tokenInAddr), msg.sender, amountIn); }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 || key.tickSpacing != CANONICAL_TICK_SPACING) { revert ExternalPoolMismatch(); } address token0 = Currency.unwrap(key.currency0); address token1 = Currency.unwrap(key.currency1); address poolAddr = pairPool[token0][token1]; if (poolAddr == address(0)) revert ExternalPoolNotFound(); if (!isAllowedExternalPool[poolAddr]) revert ExternalPoolNotAllowed(); if (address(IMaverickV2Pool(poolAddr).tokenA()) != token0 || address(IMaverickV2Pool(poolAddr).tokenB()) != token1) { revert ExternalPoolMismatch(); } PoolKey storage existing = _canonicalPoolKeyByAddress[poolAddr]; if (address(existing.hooks) != address(0)) revert PairAlreadyHasCanonicalPool(existing.toId()); _canonicalPoolKeyByAddress[poolAddr] = key; poolIdToExternalPool[key.toId()] = poolAddr; _initializedPools.push(key); emit AggregatorPoolRegistered(key.toId()); 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 || key.tickSpacing != CANONICAL_TICK_SPACING) { revert ExternalPoolMismatch(); } address token0 = Currency.unwrap(key.currency0); address token1 = Currency.unwrap(key.currency1); address poolAddr = pairPool[token0][token1]; if (poolAddr == address(0)) revert ExternalPoolNotFound(); if (!isAllowedExternalPool[poolAddr]) revert ExternalPoolNotAllowed(); if (address(IMaverickV2Pool(poolAddr).tokenA()) != token0 || address(IMaverickV2Pool(poolAddr).tokenB()) != token1) { revert ExternalPoolMismatch(); } PoolKey storage existing = _canonicalPoolKeyByAddress[poolAddr]; if (address(existing.hooks) != address(0)) revert PairAlreadyHasCanonicalPool(existing.toId()); _canonicalPoolKeyByAddress[poolAddr] = key; poolIdToExternalPool[key.toId()] = poolAddr; _initializedPools.push(key); emit AggregatorPoolRegistered(key.toId()); 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 auditpoolAddr 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: $32.4k, and took its fee from a trade: $1.21.
- Handled a trade 99 times, worth $32.4k
Latest transactions
- 0x85430a99…16c6b6 block 530,453,482
- 0x4aa716d7…f04ac8 block 530,453,478
- 0x99eb06b9…1a80f2 block 530,453,477
- 0x773d10a7…a03b81 block 530,453,474
- 0x74bccf51…96ba13 block 530,453,411
- 0x19cd196e…830646 block 530,453,410
- 0x7dec5283…51ee44 block 530,452,951
- 0x0c3822bf…6b0087 block 530,452,809
- 0xadbc8491…ef1f8e block 530,452,680
- 0xf40e4322…5c495b block 530,452,667
- Took its fee from a trade 99 times, worth $1.21
Latest transactions
- 0x85430a99…16c6b6 block 530,453,482 · 0.00000499 wstETH
- 0x4aa716d7…f04ac8 block 530,453,478 · 0.00000447 wstETH
- 0x99eb06b9…1a80f2 block 530,453,477 · 6.99e-7 wstETH
- 0x773d10a7…a03b81 block 530,453,474 · 0.00000416 wstETH
- 0x74bccf51…96ba13 block 530,453,411 · 0.0000223 wstETH
- 0x19cd196e…830646 block 530,453,410 · 0.00000231 wstETH
- 0x7dec5283…51ee44 block 530,452,951 · 0.0000279 WETH
- 0x0c3822bf…6b0087 block 530,452,809 · 0.0000312 WETH
- 0xadbc8491…ef1f8e block 530,452,680 · 5.70e-7 wstETH
- 0xf40e4322…5c495b block 530,452,667 · 9.94e-7 wstETH
- Registered an aggregator pool 3 times
Latest transactions
- 0x2641ec47…1ac60f block 529,992,754
- 0xbdbaf1f8…16bbc4 block 529,992,694
- 0xc11da9aa…91fd7b block 529,992,677
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.