HookManager
RobinhoodHookManager is a Uniswap v4 hook on Robinhood Chain. Live for 7 days. Still in use: 30 trades in the last week, and 2 new pools this week.
- Contract name
- HookManager
How this hook works
Token launcherThis hook runs meme coin pools paired with one base token (USDG). It takes a fee on every trade and sends it to a vault, where people who stake the meme coin, the token creator and the hook developer share it.
One pairing only
Every pool must pair a meme coin with the hook's base token, and the normal pool fee must be zero, so all fees go through the hook.
The code that does this (_beforeInitialize):function _beforeInitialize( address, PoolKey calldata poolKey, uint160 ) internal view override returns (bytes4) { if ( !(poolKey.currency0 == i_pairToken) && !(poolKey.currency1 == i_pairToken) ) revert InvalidPoolPair(); if (poolKey.fee != 0) revert InvalidPoolFee(); address meme = _meme(poolKey); if (!IVault(i_vault).isRegistered(meme)) revert VaultNotRegistered(meme); return IHooks.beforeInitialize.selector; }High fee at launch that falls
Right after a pool starts the fee is at its highest, then it drops steadily to the coin's normal rate over a set time. This makes early bot buying expensive.
The code that does this (feeBipsAt):function feeBipsAt( address meme, uint256 timestamp ) public view returns (uint256) { uint256 createdAt = poolTimestamps[meme]; uint256 baseFee = baseFeeBips(meme); if (createdAt == 0) return baseFee; if (timestamp <= createdAt) return MAX_FEE_BIPS; uint256 elapsed = timestamp - createdAt; if (elapsed >= DYNAMIC_FEE_THRESHOLD) return baseFee; uint256 decay = ((MAX_FEE_BIPS - baseFee) * elapsed) / DYNAMIC_FEE_THRESHOLD; return MAX_FEE_BIPS - decay; }Fee taken in the base token
On each trade the hook takes its fee in the base token and holds it for that coin.
The code that does this (_chargeFee):function _chargeFee( PoolKey calldata key, address sender, uint256 amount ) internal returns (int128) { address meme = _meme(key); uint256 fee = _feeOf(meme, sender, amount); if (fee == 0) return 0; accrued[meme] += fee; poolManager.mint(address(this), i_pairToken.toId(), fee); emit FeeCharged(key.toId(), sender, fee); return fee.toInt128(); }Fees go to the vault
Collected fees are sent to a vault that pays people who stake the meme coin, the token creator and the hook developer.
The code that does this (_payout):function _payout(address meme) internal { uint256 amount = accrued[meme]; if (amount == 0) return; address vault_ = i_vault; accrued[meme] = 0; poolManager.burn(address(this), i_pairToken.toId(), amount); poolManager.take(i_pairToken, vault_, amount); IVault(vault_).notifyFees(meme, amount); emit FeesDistributed(meme, vault_, amount); }
Who controls it: A controller contract set by the hook developer sets each coin's fee within fixed limits when its pool is created. The code cannot be upgraded.
Based on the hook’s published code.What do these labels mean?
Safety report
Before you build on it. Automated checks, not an auditWhat 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 when a pool is created, often to lock in that pool’s settings.
Hook history
- Took its fee from a trade 34 times
Latest transactions
- 0x2363bcb7…3a7915 block 122,524,463
- 0x93795008…ca3770 block 122,524,373
- 0xf54b64f1…ad44c0 block 122,524,268
- 0x8bac7c1a…f2795c block 122,519,941
- 0x3b050296…0affd5 block 122,519,640
- 0x95909698…4e7954 block 121,697,498
- 0xe8ef5700…fbaa67 block 121,660,594
- 0x3cfe64d5…08113d block 121,642,985
- 0xb1951b91…6628de block 121,642,887
- 0x530f7094…cbe234 block 121,440,678
- Recorded a trade 34 times
Latest transactions
- 0x2363bcb7…3a7915 block 122,524,463
- 0x93795008…ca3770 block 122,524,373
- 0xf54b64f1…ad44c0 block 122,524,268
- 0x8bac7c1a…f2795c block 122,519,941
- 0x3b050296…0affd5 block 122,519,640
- 0x95909698…4e7954 block 121,697,498
- 0xe8ef5700…fbaa67 block 121,660,594
- 0x3cfe64d5…08113d block 121,642,985
- 0xb1951b91…6628de block 121,642,887
- 0x530f7094…cbe234 block 121,440,678
- Sent collected fees to the vault 34 times
Latest transactions
- 0x2363bcb7…3a7915 block 122,524,463
- 0x93795008…ca3770 block 122,524,373
- 0xf54b64f1…ad44c0 block 122,524,268
- 0x8bac7c1a…f2795c block 122,519,941
- 0x3b050296…0affd5 block 122,519,640
- 0x95909698…4e7954 block 121,697,498
- 0xe8ef5700…fbaa67 block 121,660,594
- 0x3cfe64d5…08113d block 121,642,985
- 0xb1951b91…6628de block 121,642,887
- 0x530f7094…cbe234 block 121,440,678
- Recorded when a pool started 3 times
Latest transactions
- 0x6b1aadea…5b2eb9 block 122,515,280
- 0x285a6f19…93793b block 121,638,257
- 0x835ef23c…7c5687 block 116,483,320
Settings changes: set the fee for a new coin (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.