CircusHook
RobinhoodCircusHook is a Uniswap v4 hook on Robinhood Chain. Brand new: its first pool went live today. Still in use: 9 trades in the last week, and 3 new pools this week.
- Contract name
- CircusHook
How this hook works
Token launcherClanker lets anyone launch a new token in one click. This hook runs every Clanker pool: it locks the liquidity so nobody can pull it, and splits trading fees between the token creator and Clanker.
Liquidity is locked
At launch, the token’s starting liquidity is locked inside Clanker, so the token creator can’t pull it out and crash the price (a “rug pull”).
The code that does this (beforeAddLiquidity):function _beforeAddLiquidity( address, PoolKey calldata poolKey, IPoolManager.ModifyLiquidityParams calldata, bytes calldata ) internal override returns (bytes4) { if (mevModuleOperational(poolKey.toId())) revert MevModuleEnabled(); return BaseHook.beforeAddLiquidity.selector; }The token creator earns from trades
Every trade pays a fee. Most of it goes to the token creator, who can claim it any time.
The code that does this (beforeSwap):function _beforeSwap( address, PoolKey calldata poolKey, IPoolManager.SwapParams calldata swapParams, bytes calldata swapData ) internal override returns (bytes4, BeforeSwapDelta delta, uint24) { PoolId id = poolKey.toId(); bool isBuy = swapParams.zeroForOne != clankerIsToken0[id]; // Base total for this direction goes to slot0 first: the decay module reads it there // (CircusDecayMevModule.sol:189-190) and may raise it through mevModuleSetFee. uint24 base = PROTOCOL_FEE_PIPS + (isBuy ? creatorBuyFeePips[id] : creatorSellFeePips[id]); poolManager.updateDynamicLPFee(poolKey, base); _runMevModule(poolKey, swapParams, swapData); uint24 total = _totalFee(id); if (swapParams.amountSpecified < 0 && isBuy) { // buy, exact-in: fee off the specified quote input before the swap uint256 gross = uint256(-swapParams.amountSpecified); uint256 fee = gross * total / ONE; delta = toBeforeSwapDelta(_toInt128(fee), 0); _record(poolKey, id, true, gross, total, fee); } else if (swapParams.amountSpecified > 0 && !isBuy) { // sell, exact-out: the pool releases gross, the trader receives the specified X uint256 x = uint256(swapParams.amountSpecified); uint256 gross = _grossUp(x, total); uint256 fee = gross - x; delta = toBeforeSwapDelta(_toInt128(fee), 0); _record(poolKey, id, false, gross, total, fee); } // …Clanker takes a cut
The hook keeps a share of each trade for Clanker and sends it over from time to time. Hook history counts these payouts.
The code that does this (afterSwap):function _afterSwap( address sender, PoolKey calldata poolKey, IPoolManager.SwapParams calldata swapParams, BalanceDelta delta, bytes calldata swapData ) internal override returns (bytes4, int128 unspecifiedDelta) { PoolId id = poolKey.toId(); bool token0IsClanker = clankerIsToken0[id]; bool isBuy = swapParams.zeroForOne != token0IsClanker; bool exactIn = swapParams.amountSpecified < 0; int128 quoteDelta = token0IsClanker ? delta.amount1() : delta.amount0(); uint24 total = _totalFee(id); if (exactIn && !isBuy) { // sell, exact-in: fee off the quote output uint256 gross = uint256(int256(quoteDelta)); // > 0: owed to the swapper uint256 fee = gross * total / ONE; unspecifiedDelta = _toInt128(fee); _record(poolKey, id, false, gross, total, fee); } else if (!exactIn && isBuy) { // buy, exact-out: fee on top of the quote input the pool took uint256 net = uint256(-int256(quoteDelta)); // < 0: owed by the swapper uint256 gross = _grossUp(net, total); uint256 fee = gross - net; unspecifiedDelta = _toInt128(fee); _record(poolKey, id, true, gross, total, fee); } else if (exactIn) { // buy, exact-in: the pool must have taken exactly what the fee was computed against uint256 gross = uint256(-swapParams.amountSpecified); // …Anti-bot fee at launch
For the first moments after launch, buying can cost a very high fee, so bots can’t grab the supply before real traders. It then switches off on its own.
The code that does this (beforeSwap):function _beforeSwap( address, PoolKey calldata poolKey, IPoolManager.SwapParams calldata swapParams, bytes calldata swapData ) internal override returns (bytes4, BeforeSwapDelta delta, uint24) { PoolId id = poolKey.toId(); bool isBuy = swapParams.zeroForOne != clankerIsToken0[id]; // Base total for this direction goes to slot0 first: the decay module reads it there // (CircusDecayMevModule.sol:189-190) and may raise it through mevModuleSetFee. uint24 base = PROTOCOL_FEE_PIPS + (isBuy ? creatorBuyFeePips[id] : creatorSellFeePips[id]); poolManager.updateDynamicLPFee(poolKey, base); _runMevModule(poolKey, swapParams, swapData); uint24 total = _totalFee(id); if (swapParams.amountSpecified < 0 && isBuy) { // buy, exact-in: fee off the specified quote input before the swap uint256 gross = uint256(-swapParams.amountSpecified); uint256 fee = gross * total / ONE; delta = toBeforeSwapDelta(_toInt128(fee), 0); _record(poolKey, id, true, gross, total, fee); } else if (swapParams.amountSpecified > 0 && !isBuy) { // sell, exact-out: the pool releases gross, the trader receives the specified X uint256 x = uint256(swapParams.amountSpecified); uint256 gross = _grossUp(x, total); uint256 fee = gross - x; delta = toBeforeSwapDelta(_toInt128(fee), 0); _record(poolKey, id, false, gross, total, fee); } // …
Who controls it: Clanker decides which add-ons and anti-bot modules launches may use and who its admins are. Each token’s fees and locked liquidity are fixed at launch. The code itself can’t be changed.
This hook’s code works like ClankerHookStaticFeeV2 (same design, possibly different settings or names), so this is that contract’s description.What do these labels mean?
Safety report
Before you build on it. Automated checks, not an auditmevModule 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 trade money (this hook holds the pool’s funds): $0.280.
- Handled trade money (this hook holds the pool’s funds) 3 times, worth $0.280
Latest transactions
- 0xaa35acaa…a7a180 block 118,778,607 · 0.00000200 WETH
- 0x3a00620d…d78eee block 118,653,370 · 0.000129 WETH
- 0xe007e5e4…e300a8 block 118,652,312 · 0.0000317 WETH
- Circus swap fee 9 times
Latest transactions
- 0xa5aa177e…bce0c8 block 118,770,148
- 0x20c4f9d1…473c97 block 118,650,767
- 0x1fa47431…8a44bd block 118,649,916
- 0x10decf88…0e24a5 block 118,647,682
- 0x32600b3f…9601f5 block 118,647,042
- 0x9b95e75d…13ad79 block 118,643,882
- 0x7db5cf3d…9b64e6 block 118,633,718
- 0xddd24d48…b595f9 block 118,631,511
- 0x311f5bed…432293 block 118,623,566
- Anti-bot protection set a launch fee 3 times
Latest transactions
- 0x1fa47431…8a44bd block 118,649,916
- 0x10decf88…0e24a5 block 118,647,682
- 0x32600b3f…9601f5 block 118,647,042
- Launched a new token 3 times
Latest transactions
- 0xa5aa177e…bce0c8 block 118,770,148
- 0x9b95e75d…13ad79 block 118,643,882
- 0x311f5bed…432293 block 118,623,566
- Anti-bot protection switched off after launch 1 time
Settings changes: set up the circus pool (3 times), settled fees (3 times).
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.