SquadSwapBinAggregator
BSCSquadSwapBinAggregator is a Uniswap v4 hook on BSC. Brand new: its first pool went live today. Still in use: 10 trades in the last week, and 4 new pools this week.
- Contract name
- SquadSwapBinAggregator
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 (settleVault):function _settleVault(bytes32 extId, bool zeroToOne, Currency takeCurrency, uint256 payAmt, uint256 recvAmt) private { BinPoolKey storage extKey = _extPoolKeys[extId]; address tokenIn = zeroToOne ? extKey.currency0 : extKey.currency1; address tokenOut = zeroToOne ? extKey.currency1 : extKey.currency0; IVault(vault).sync(tokenIn); poolManager.take(takeCurrency, vault, payAmt); IVault(vault).settle(); IVault(vault).take(tokenOut, address(poolManager), recvAmt); }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); bytes32 extId = pairPool[token0][token1]; if (extId == bytes32(0)) revert ExternalPoolNotFound(); if (!isAllowedExternalPool[extId]) revert ExternalPoolNotAllowed(); PoolKey storage existing = _canonicalPoolKeyByExtId[extId]; if (address(existing.hooks) != address(0)) revert PairAlreadyHasCanonicalPool(existing.toId()); _canonicalPoolKeyByExtId[extId] = key; poolIdToExternalPoolId[key.toId()] = extId; _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); bytes32 extId = pairPool[token0][token1]; if (extId == bytes32(0)) revert ExternalPoolNotFound(); if (!isAllowedExternalPool[extId]) revert ExternalPoolNotAllowed(); PoolKey storage existing = _canonicalPoolKeyByExtId[extId]; if (address(existing.hooks) != address(0)) revert PairAlreadyHasCanonicalPool(existing.toId()); _canonicalPoolKeyByExtId[extId] = key; poolIdToExternalPoolId[key.toId()] = extId; _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 auditVault: nothing there can change how trades go.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: $7.3k, and took its fee from a trade: $0.0364.
- Handled a trade 13 times, worth $7.3k
Latest transactions
- 0x5eac50ae…f136f2 block 135,464,923
- 0x57a3c60a…030109 block 135,464,923
- 0x5cbbe71d…0bbfb8 block 135,464,922
- 0x4a6d877d…f77f0c block 135,463,570
- 0xf4d3fb2d…d8f224 block 135,462,963
- 0x821afece…94890d block 135,462,438
- 0x4164777b…f878ec block 135,460,867
- 0xbb0ff30e…ae9f76 block 135,460,352
- 0x4831103d…f0810c block 135,458,765
- 0x75c444ae…a8e882 block 135,457,707
- Took its fee from a trade 13 times, worth $0.0364
Latest transactions
- 0x5eac50ae…f136f2 block 135,464,923 · 0.00000118 ETH
- 0x57a3c60a…030109 block 135,464,923 · 0.00000587 ETH
- 0x5cbbe71d…0bbfb8 block 135,464,922 · 0.00000181 ETH
- 0x4a6d877d…f77f0c block 135,463,570 · 0.00106 USDT
- 0xf4d3fb2d…d8f224 block 135,462,963 · 3.36e-8 WBNB
- 0x821afece…94890d block 135,462,438 · 0.00288 USDT
- 0x4164777b…f878ec block 135,460,867 · 0.00245 USDT
- 0xbb0ff30e…ae9f76 block 135,460,352 · 0.000701 USDT
- 0x4831103d…f0810c block 135,458,765 · 2.90e-7 WBNB
- 0x75c444ae…a8e882 block 135,457,707 · 0.00000135 ETH
- Registered an aggregator pool 4 times
Latest transactions
- 0xb4ab887d…4ea602 block 135,456,221
- 0x89465127…43b41b block 135,456,212
- 0x1748c8aa…bbb708 block 135,456,195
- 0x1fcab5e2…3fe491 block 135,456,184
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
4 totalOnly pools with trades in the last 7 days are listed here: 2 of 4. See all, newest first.