SquadSwapBinAggregator
BSCSquadSwapBinAggregator is a Uniswap v4 hook on BSC. Brand new: its first pool went live today. Active: 71 trades in the last week, and 6 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: $40.1k, and took its fee from a trade: $1.00.
- Handled a trade 71 times, worth $40.1k
Latest transactions
- 0x3b47fb0f…f15124 block 135,454,544
- 0xaeec2ad5…75b167 block 135,454,502
- 0x9d211839…d59ce3 block 135,453,420
- 0x77ad2965…973484 block 135,450,332
- 0x459279d1…d0550d block 135,446,774
- 0x373d2e44…84ab0d block 135,445,623
- 0xcaef8c2a…be92fa block 135,444,188
- 0x51fae79a…045657 block 135,443,154
- 0x1f6eaa24…e6cb15 block 135,440,511
- 0x9c7e160c…1a9c72 block 135,439,956
- Took its fee from a trade 71 times, worth $1.00
Latest transactions
- 0x3b47fb0f…f15124 block 135,454,544 · 0.00000875 ETH
- 0xaeec2ad5…75b167 block 135,454,502 · 0.0000670 WBNB
- 0x9d211839…d59ce3 block 135,453,420 · 0.00219 USDT
- 0x77ad2965…973484 block 135,450,332 · 0.00000298 ETH
- 0x459279d1…d0550d block 135,446,774 · 0.00000559 ETH
- 0x373d2e44…84ab0d block 135,445,623 · 0.000526 USDT
- 0xcaef8c2a…be92fa block 135,444,188 · 0.000111 WBNB
- 0x51fae79a…045657 block 135,443,154 · 8.10e-8 BTCB
- 0x1f6eaa24…e6cb15 block 135,440,511 · 1.20e-12 BTCB
- 0x9c7e160c…1a9c72 block 135,439,956 · 0.00111 USDT
- Registered an aggregator pool 6 times
Latest transactions
- 0x53382e36…915ad8 block 135,386,233
- 0x2d36ca67…a6aee9 block 135,386,225
- 0x525fc8e6…a8f2c4 block 135,386,214
- 0x937426a9…46523a block 135,386,206
- 0x6b56417d…76d7e3 block 135,386,197
- 0x563ffa63…e19a52 block 135,386,189
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
6 totalOnly pools with trades in the last 7 days are listed here: 5 of 6. See all, newest first.