OnTopHook
RobinhoodOnTopHook is a Uniswap v4 hook on Robinhood Chain. Runs code on every swap. Gates who can add liquidity. Runs at pool creation.
- Contract name
- OnTopHook
How this hook works
Liquidity rulesA liquidity rules hook. It controls who adds liquidity and only lets approved callers create pools.
Rules for adding liquidity
It decides who can add liquidity, or when.
The code that does this (beforeAddLiquidity):function beforeAddLiquidity(address sender, PoolKey calldata, ModifyLiquidityParams calldata, bytes calldata) external view onlyPoolManager returns (bytes4) { if (sender != launchpad) revert NotLaunchpad(); return IHooks.beforeAddLiquidity.selector; }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 sender, PoolKey calldata, uint160) external view onlyPoolManager returns (bytes4) { if (sender != launchpad) revert NotLaunchpad(); return IHooks.beforeInitialize.selector; }
Who controls it: The hook developer can change which launcher it works with. The launchpad can call: register, refill. The code cannot be changed.
What do these labels mean? Based on the hook’s published code.
What it can do
Its code executes inside each trade in pools that use it.
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
- Handled a trade 20 times
Latest transactions
- 0xc2ad6f63…025be9 block 112,672,507 · 0.0000500 PUG
- 0xe9bdbb17…10ff2a block 112,672,495 · 0.0000500 CAPY
- 0xd3ac285d…4ef73c block 112,672,478 · 0.0000500 WAGMI
- 0x96083a8b…978eb2 block 112,672,461 · 0.0000500 PAWS
- 0xef3e88f0…51db7e block 112,672,444 · 0.0000500 TOAST
- 0x0f96ec2f…e49719 block 112,672,427 · 0.0000500 LZRCAT
- 0xc0e4a0c4…0e62c5 block 112,672,415 · 0.0000500 HAMSTR
- 0xe64c45d2…f389bf block 112,672,399 · 0.0000500 DDUCK
- 0xbed0637a…72eec4 block 112,672,383 · 0.0000500 GOBLIN
- 0xde00eecb…d70b96 block 112,672,366 · 0.0000500 LVL99
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.