FoundryHookV4Variable on Robinhood Chain
Uniswap v4 Hook Contract 0x70f9835c096ec6ca60b2b4a8674d141eecec40c0 on Robinhood Chain · Dynamic fee · Verified contract
- Volume (24h)
- $6.72
- Value locked (TVL)
- $7.56K
- All-time volume
- $1.50M
- Pools using this hook
- 159
- Swaps (24h)
- 2 (1 traders)
- Total swaps
- 18,261
What it does
A launchpad fee hook for native-ETH/token Uniswap v4 pools that charges a market-cap-tiered dynamic LP fee on every trade and splits it between the creator and protocol.
How it works step by step
- beforeSwap computes market cap from the pool's sqrtPriceX96 and returns a dynamic LP fee (1.50% down to 0.50%) with OVERRIDE_FEE_FLAG.
- afterSwap records the MC-weighted creator/protocol split of the fee on exact-input buys, read later by the locker via pendingSplitBps.
- Fees accrue to the locked single-sided curve position and are collected and split by FeeLockerV4, not skimmed by the hook.
- Creator share ranges from 40% to 76% of the fee depending on the market-cap band; creators claim via claimCreatorFees with payout wallets.
- Graduation progress is derived from slot0 and the curve geometry; factory-only markGraduated flips the pool to the graduated fee band once the ETH threshold is met.
- Swap behaviour
- beforeSwap overrides the LP fee per the current market-cap band (never reverts). afterSwap records the creator/protocol split on exact-input buys. Swaps are otherwise unrestricted.
- Liquidity behaviour
- No liquidity callbacks are enabled (beforeAddLiquidity and related are disabled in permissions). Liquidity is a single-sided curve position owned via the immutable locker; the hook reads accumulated ETH from slot0 to compute graduation progress. Graduation is triggered by factory-only markGraduated once the accumulated-ETH threshold is reached.
- Fee behaviour
- Pre-graduation the hook sets a dynamic LP fee via beforeSwap (OVERRIDE_FEE_FLAG): 1.50% in the snipe and momentum bands, 1.40% in run-to-graduation, scaling down by market-cap band to 0.50% at mega cap. Post-graduation the same tiered schedule continues (a graduated coin is clamped to the graduated band). Fee accrues to the locked LP position and is split creator/protocol by the MC-based creator share (40% to 76% depending on band); the split is recorded in afterSwap and read via pendingSplitBps for FeeLockerV4 collection. The hook itself takes no token deltas.
- Owner & admin controls
- No owner or pause controls found. Only the factory can call registerPool, setInitialPayout and markGraduated; the creator alone can set payout splits and transfer the creator role; claimProtocolFees is permissionless and pays the immutable protocolTreasury. Source is not upgradeable (no proxy, no setters for fees or treasury).
Enabled Uniswap v4 callbacks
beforeSwap, afterSwap
beforeSwap: sets the dynamic LP fee (never reverts, returns zero delta). afterSwap: read-only bookkeeping recording the MC-weighted creator/protocol split for exact-input buys (never reverts, returns zero delta). No return-delta permissions are enabled.
Security & trust assessment
Risk level: low (verified source, high confidence).
Who controls it: The factory controls registration and graduation, and can set the initial payout split once per pool. The creator can change payout wallets subject to non-creator floor ratchets, and can transfer the creator role. No key can change fee rates, pause swaps, or move pool funds; fee constants are hardcoded in the bytecode.
Risk to user funds: The hook only holds ETH fees accrued from trades pending claim by the creator or treasury; it does not custody LP principal or move pool tokens (no return deltas). Claims are restricted to the stored payout config or treasury address, so an external party cannot drain accrued balances.
Security findings
- [info] Fees are immutable: Fee rates, MC bands and creator splits are compile-time constants with no setter, so the fee cannot be raised by any privileged key.
- [info] Non-reverting swap callbacks: beforeSwap and afterSwap never revert on normal paths (afterSwap has no SnipeCap; no outside-LP block). Swaps cannot be halted by the hook.
- [low] Hook holds accrued ETH: Creator-fee accounting is pull-based and conserves to the wei. Accrued fees are held in the hook balance until claimed, so a bug in claim or payout logic could affect those held ETH balances.
- [low] No on-chain anti-snipe: Anti-snipe and same-block protections were removed; errors SnipeCap and SameBlockTrade remain in the ABI but are unused. Launch-window sniping is not restricted on-chain.
- [info] Creator payout control: The creator controls payout splits and can redirect creator fees among up to 10 wallets; non-creator assignees are protected by a floor ratchet that prevents reducing their share.
Contract details
- Verified source
- Yes (FoundryHookV4Variable)
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Bytecode size
- 13,216 bytes
- Upgradeable proxy
- No
- Detected patterns
- launchpad
Pools using FoundryHookV4Variable
- ETH / ORO (Dynamic fee) — 24h volume $6.72, TVL $3.57K, 2 swaps today
- ETH / Pepe (Dynamic fee) — 24h volume $0, TVL $1.63K, 0 swaps today
- ETH / EDog (Dynamic fee) — 24h volume $0, TVL $166, 0 swaps today
- ETH / helloWORLD (Dynamic fee) — 24h volume $0, TVL $249, 0 swaps today
- ETH / Jimothy (Dynamic fee) — 24h volume $0, TVL $50, 0 swaps today
- ETH / FTB (Dynamic fee) — 24h volume $0, TVL $71, 0 swaps today
- ETH / CGIZ (Dynamic fee) — 24h volume $0, TVL $66, 0 swaps today
- ETH / XAU (Dynamic fee) — 24h volume $0, TVL $199, 0 swaps today
- ETH / JAILTATE (Dynamic fee) — 24h volume $0, TVL $146, 0 swaps today
- ETH / OROPEPE (Dynamic fee) — 24h volume $0, TVL $63, 0 swaps today
- ETH / OG (Dynamic fee) — 24h volume $0, TVL $44, 0 swaps today
- ETH / URANUS (Dynamic fee) — 24h volume $0, TVL $16, 0 swaps today
- ETH / CHEF3 (Dynamic fee) — 24h volume $0, TVL $22, 0 swaps today
- ETH / MAT (Dynamic fee) — 24h volume $0, TVL $12, 0 swaps today
- ETH / WIN (Dynamic fee) — 24h volume $0, TVL $135, 0 swaps today
- ETH / MAT (Dynamic fee) — 24h volume $0, TVL $9.60, 0 swaps today
- ETH / RAGEGUY (Dynamic fee) — 24h volume $0, TVL $22, 0 swaps today
- ETH / SEAHORSE (Dynamic fee) — 24h volume $0, TVL $89, 0 swaps today
- ETH / TRADWIFE (Dynamic fee) — 24h volume $0, TVL $67, 0 swaps today
- ETH / MAT (Dynamic fee) — 24h volume $0, TVL $8.65, 0 swaps today