Sluice
ArbitrumHookSluice is a Uniswap v4 hook on Arbitrum. Brand new: its first pool went live today. Still in use: 9 trades in the last week, and 1 new pool this week.
- Contract name
- Sluice
How this hook works
Trading taxA trading tax hook. It takes a tax on trades, manages its own liquidity and burns tokens.
Takes a tax on trades
On top of the normal pool fee, it keeps part of each trade as a tax. Buys and sells can be charged differently. The tax can be changed, but never above 10%.
The code that does this (beforeSwap):function beforeSwap(address sender, PoolKey calldata, IPoolManager.SwapParams calldata params, bytes calldata) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { if (sender != router) revert NotRouter(); _record(); bool isBuy = params.zeroForOne == usdcIsCurrency0; bool exactIn = params.amountSpecified < 0; uint256 fee; if (isBuy) { if (!exactIn) revert ExactInputOnly(); fee = uint256(-params.amountSpecified) * buyFeeBps / BPS; _protocolFeesBefore = poolManager.protocolFeesAccrued(Currency.wrap(usdc)); } else if (!exactIn) { fee = uint256(params.amountSpecified) * sellFeeBps / (BPS - sellFeeBps); } if (fee == 0) return (IHooks.beforeSwap.selector, toBeforeSwapDelta(0, 0), 0); _pendingFee = fee; poolManager.take(Currency.wrap(usdc), feeWallet, fee); return (IHooks.beforeSwap.selector, toBeforeSwapDelta(fee.toInt256().toInt128(), 0), 0); }Manages its own liquidity
It adds and removes liquidity itself, so it can own part or all of the pool.
The code that does this (unlockCallback):function unlockCallback(bytes calldata data) external onlyPoolManager returns (bytes memory) { (uint256 amount0, uint256 amount1) = abi.decode(data, (uint256, uint256)); PoolKey memory key = poolKey(); int24 lower = TickMath.minUsableTick(tickSpacing); int24 upper = TickMath.maxUsableTick(tickSpacing); (uint160 sqrtP,,,) = poolManager.getSlot0(poolId); uint128 liquidity = LiquidityAmounts.forAmounts( sqrtP, TickMath.getSqrtPriceAtTick(lower), TickMath.getSqrtPriceAtTick(upper), amount0, amount1 ); if (liquidity == 0) return abi.encode(uint128(0), uint256(0), uint256(0)); (BalanceDelta delta,) = poolManager.modifyLiquidity( key, IPoolManager.ModifyLiquidityParams({ tickLower: lower, tickUpper: upper, liquidityDelta: int256(uint256(liquidity)), salt: bytes32(0) }), "" ); uint256 paid0 = uint256(int256(-delta.amount0())); uint256 paid1 = uint256(int256(-delta.amount1())); _settle(key.currency0, paid0); _settle(key.currency1, paid1); return abi.encode(liquidity, paid0, paid1); }Burns tokens
It destroys some tokens (or sends them to an address nobody controls), so there are fewer of them.
The code that does this (distributeBuy):function _distributeBuy(address buyer, uint256 usdcIn, uint256 fee, uint256 protocolFee, uint256 tokenOut) private { uint256 cut = tokenOut * cutShareBps / BPS; uint256 burned = tokenOut - cut; if (cut > 0) poolManager.take(Currency.wrap(token), cutWallet, cut); if (burned > 0) { poolManager.take(Currency.wrap(token), address(this), burned); IBurnable(token).burn(burned); } IRelation(relation).onBuy(buyer, usdcIn, tokenOut, burned); emit Bought(buyer, usdcIn, fee, protocolFee, tokenOut, cut, burned); }Liquidity can’t be added or removed directly
Nobody can add or remove liquidity through Uniswap directly. Liquidity only moves through the hook’s own code.
Only the hook creates its pools
Nobody can create a pool with this hook directly. Pools are only created through the hook’s own code.
Simple trades only
Trades must state the amount going in, not the amount coming out.
The code that does this (beforeSwap):function beforeSwap(address sender, PoolKey calldata, IPoolManager.SwapParams calldata params, bytes calldata) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { if (sender != router) revert NotRouter(); _record(); bool isBuy = params.zeroForOne == usdcIsCurrency0; bool exactIn = params.amountSpecified < 0; uint256 fee; if (isBuy) { if (!exactIn) revert ExactInputOnly(); fee = uint256(-params.amountSpecified) * buyFeeBps / BPS; _protocolFeesBefore = poolManager.protocolFeesAccrued(Currency.wrap(usdc)); } else if (!exactIn) { fee = uint256(params.amountSpecified) * sellFeeBps / (BPS - sellFeeBps); } if (fee == 0) return (IHooks.beforeSwap.selector, toBeforeSwapDelta(0, 0), 0); _pendingFee = fee; poolManager.take(Currency.wrap(usdc), feeWallet, fee); return (IHooks.beforeSwap.selector, toBeforeSwapDelta(fee.toInt256().toInt128(), 0), 0); }
Who controls it: The hook developer can change when trading opens, the fee, how the fees are shared and the wallets that receive its fees. The hook developer can also change: breaker. The hook developer can also call: add liquidity, transfer admin. The code never lets the fee go above 10%. 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 auditsetFeessetWalletssetWalletssetBreakersetFeesWhat 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.
It runs before liquidity is removed, so it can delay or refuse LP exits.
It checks every deposit before it goes in.
It runs when a pool is created, often to lock in that pool’s settings.
It runs when someone donates tokens to the pool’s LPs.
Hook history
- A trader bought 19 times
Latest transactions
- 0xb05c5965…b17a1a block 530,813,072
- 0xc85a3374…c0bf16 block 530,812,986
- 0xa0c709e1…65bcda block 530,812,954
- 0x883379fe…8fada0 block 530,812,941
- 0xb406bc14…99ce78 block 530,812,815
- 0x9879c19b…8d0b82 block 530,812,780
- 0x3a46619f…948551 block 530,812,745
- 0x3d3259b8…4960a0 block 530,812,712
- 0xc717ee42…5f8fd5 block 530,812,657
- 0x563b18c0…39494a block 530,812,640
- Burned tokens 16 times
Latest transactions
- 0x883379fe…8fada0 block 530,812,941 · 35.7k AEON
- 0xb406bc14…99ce78 block 530,812,815 · 85.6k AEON
- 0x9879c19b…8d0b82 block 530,812,780 · 262.2k AEON
- 0x3a46619f…948551 block 530,812,745 · 28.6k AEON
- 0x3d3259b8…4960a0 block 530,812,712 · 250.4k AEON
- 0xc717ee42…5f8fd5 block 530,812,657 · 292.4k AEON
- 0x563b18c0…39494a block 530,812,640 · 90.1k AEON
- 0xa1c483b1…2f8d10 block 530,812,618 · 3.6k AEON
- 0xd4b28704…6e25a7 block 530,812,305 · 144.5k AEON
- 0xe13d14a2…e16e8c block 530,812,273 · 359.1k AEON
- Handled trade money (this hook holds the pool’s funds) 16 times
Latest transactions
- 0x883379fe…8fada0 block 530,812,941 · 35.7k AEON
- 0xb406bc14…99ce78 block 530,812,815 · 85.6k AEON
- 0x9879c19b…8d0b82 block 530,812,780 · 262.2k AEON
- 0x3a46619f…948551 block 530,812,745 · 28.6k AEON
- 0x3d3259b8…4960a0 block 530,812,712 · 250.4k AEON
- 0xc717ee42…5f8fd5 block 530,812,657 · 292.4k AEON
- 0x563b18c0…39494a block 530,812,640 · 90.1k AEON
- 0xa1c483b1…2f8d10 block 530,812,618 · 3.6k AEON
- 0xd4b28704…6e25a7 block 530,812,305 · 144.5k AEON
- 0xe13d14a2…e16e8c block 530,812,273 · 359.1k AEON
- Added to the pool’s liquidity 2 times
Latest transactions
- 0xf7239276…7e59e4 block 530,803,780
- 0x35fecc09…481c86 block 530,798,527
- A trader sold 2 times
Latest transactions
- 0x25417939…2260fc block 530,813,094
- 0xe0c67458…9a1bd9 block 530,801,909
- Launched a new token 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.