BandHook
RobinhoodBandHook is a Uniswap v4 hook on Robinhood Chain. Live for 5 days. Still in use: 3 trades in the last week, and 1 new pool this week.
- Contract name
- BandHook
How this hook works
Liquidity managerA liquidity manager hook. It sets its own trading fee, manages its own liquidity and holds trading back until it is opened.
Sets its own trading fee
Instead of a fixed fee chosen by the pool creator, it decides the fee itself on each trade. The fee goes to liquidity providers; the hook keeps nothing for itself.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata key, SwapParams calldata, bytes calldata) external returns (bytes4, BeforeSwapDelta, uint24) { if (msg.sender != address(manager)) revert NotManager(); PoolId id = key.toId(); PoolConfig storage cfg = config[id]; if (address(cfg.source) == address(0)) revert NotEnabled(); uint24 fee = cfg.feeCap; // no usable price: arbitrage pays the most while the hook is blind (int24 oracleTick, bool fresh) = _oracleTick(cfg); if (fresh) { (, int24 poolTick,,) = manager.getSlot0(id); uint256 dTicks = _absDiff(poolTick, oracleTick); // 1 tick ~ 0.01% divergence; slope is ppm per 100% uint256 add = dTicks * cfg.feeSlopePpm / 10_000; uint256 f = uint256(cfg.feeFloor) + add; fee = f >= cfg.feeCap ? cfg.feeCap : uint24(f); } return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, fee | LPFeeLibrary.OVERRIDE_FEE_FLAG); }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 (burn):function _burn(PoolKey memory key, Pos memory p, bytes32 salt) internal { if (p.liquidity == 0) return; manager.modifyLiquidity( key, ModifyLiquidityParams({ tickLower: p.lower, tickUpper: p.upper, liquidityDelta: -int256(uint256(p.liquidity)), salt: salt }), "" ); }No trading before the start
Trades are refused until trading has been opened.
The code that does this (beforeSwap):function beforeSwap(address, PoolKey calldata key, SwapParams calldata, bytes calldata) external returns (bytes4, BeforeSwapDelta, uint24) { if (msg.sender != address(manager)) revert NotManager(); PoolId id = key.toId(); PoolConfig storage cfg = config[id]; if (address(cfg.source) == address(0)) revert NotEnabled(); uint24 fee = cfg.feeCap; // no usable price: arbitrage pays the most while the hook is blind (int24 oracleTick, bool fresh) = _oracleTick(cfg); if (fresh) { (, int24 poolTick,,) = manager.getSlot0(id); uint256 dTicks = _absDiff(poolTick, oracleTick); // 1 tick ~ 0.01% divergence; slope is ppm per 100% uint256 add = dTicks * cfg.feeSlopePpm / 10_000; uint256 f = uint256(cfg.feeFloor) + add; fee = f >= cfg.feeCap ? cfg.feeCap : uint24(f); } return (IHooks.beforeSwap.selector, BeforeSwapDeltaLibrary.ZERO_DELTA, fee | LPFeeLibrary.OVERRIDE_FEE_FLAG); }
Who controls it: The hook developer can change: params, source, enabled. The hook developer can also call: configure, fund. The hook developer can withdraw funds held by the hook. 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 auditfund withdraw sweepsetParams setSourcesetParamssetParamsWhat it can do
Its code executes inside each trade in pools that use it.
Pools using it let the hook choose the swap fee instead of a fixed tier.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
Across all its pools, the hook funded: $477.11.
- Funded 1 time, worth $477.11
- Recentered 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.