DegenV4FeeHook on Robinhood Chain
Uniswap v4 Hook Contract 0x6c03a61aceb0dc007a015ca0c07af13e853c60cc on Robinhood Chain · Dynamic fee · Verified contract
- Volume (24h)
- $979
- Value locked (TVL)
- $1.24K
- All-time volume
- $399.89K
- Pools using this hook
- 29
- Swaps (24h)
- 15 (11 traders)
- Total swaps
- 4,062
What it does
A Uniswap v4 hook that charges a creator-chosen trade fee on graduated tokens and splits it between the creator, the platform and a referral rail, with the creator keeping their full chosen rate.
How it works step by step
- Blocks pool initialization unless the pool was registered by an authorized registrar with a matching ETH currency0 and zero LP fee.
- Skims the entire creator-set total fee in ETH from each swap, using beforeSwap or afterSwap depending on swap direction so exactly one skim fires per swap.
- Splits each skim into a flat 30 bps platform add-on and 5 bps referral add-on of volume, with the creator receiving the remainder so they keep their chosen rate.
- Accrues fees as ERC-6909 claim balances inside the PoolManager instead of pushing tokens, so a reverting recipient cannot brick swaps.
- Lets the creator, treasury, owner and feeClaimer pull accrued balances to a chosen address through separate claim functions.
- Swap behaviour
- On every swap the hook takes the whole registered fee in ETH: in beforeSwap when ETH is the specified currency (exact-in buy, exact-out sell) and in afterSwap when ETH is unspecified (exact-in sell, exact-out buy). Fees are minted to the hook as ERC-6909 and credited to creator, platform and referral balances. Partially filled ETH-specified swaps revert.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Pool charges zero LP fee; the hook skims the entire creator-set total fee (50-535 bps, or a global snapshot up to 535 bps) from each swap in ETH. Of the skim, 30 bps of volume goes to platform and 5 bps to referral as fixed add-ons, and the creator keeps the remainder (their chosen rate). Trader pays rate + 35 bps. Fees accrue as ERC-6909 credits and are claimed by pull.
- Owner & admin controls
- Owner (Ownable) can set registrars (setRegistrar) who gate pool registration, set treasury and feeClaimer addresses, and transfer or renounce ownership. Owner or treasury can claim platform fees; owner or feeClaimer can claim referral fees. Fee bounds are constant, so owner cannot change per-pool fees after registration.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize restricts pool initialization to pools registered by a registrar. beforeSwap skims fees off the input when ETH is the specified currency. afterSwap skims fees off the ETH leg when ETH is unspecified, and reverts partially filled ETH-specified swaps to avoid overcharging. beforeSwapReturnDelta and afterSwapReturnDelta allow the hook to take the skim as a delta.
Security & trust assessment
Risk level: low (verified source, high confidence).
Who controls it: Owner can register arbitrary addresses as registrars who can then register pools, grant or revoke registrar status, redirect the treasury and feeClaimer roles, and transfer ownership. Owner cannot alter an existing pool's fee or creator. Treasury and feeClaimer can withdraw accrued platform and referral balances to any address they choose.
Risk to user funds: The hook can take up to the registered total fee (max 5.35%) of each swap's ETH leg, and holds accrued balances as ERC-6909 claims until withdrawn. It cannot block swaps for non-registered pools (beforeInitialize only gates initialization), and claims are isolated per recipient so a reverting recipient only fails its own claim. Owner-controlled roles can redirect accrued platform and referral balances.
Security findings
- [info] Hook custodies accrued fees: Hook takes a fixed cut of every swap via return deltas and mints ERC-6909 claims to itself, so user funds flow through the hook contract until claimed.
- [info] Partial fill revert on ETH-specified swaps: Explicit guard reverts under-filled ETH-specified swaps so the pre-swap skim cannot overcharge the trader, which reduces swap failure risk only for partial fills.
- [low] Registrar trust: Owner can add registrars that can register pools, and registrars are trusted to pass correct creator and fee values; the hook itself enforces fee bounds and ETH currency0 but not the legitimacy of the creator address.
- [low] Degenerate split for low global fees: Non-creator-set global snapshots may be registered with feeBps down to 0 or below the add-on total, in which case the creator receives no cut; this is handled explicitly but is a configuration choice that can starve creators.
- [medium] Single owner key without timelock: Ownership is an Ownable single-key with no timelock, so a compromised owner key could redirect treasury or feeClaimer and register malicious registrars.
Contract details
- Verified source
- Yes (DegenV4FeeHook)
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Bytecode size
- 9,250 bytes
- Upgradeable proxy
- No
- Detected patterns
- dynamic-fee, ownable, return-delta, tax
Pools using DegenV4FeeHook
- ETH / KEK (0.00% fee) — 24h volume $978, TVL $949, 14 swaps today
- ETH / OMNIA (0.00% fee) — 24h volume $0.43, TVL $175, 1 swaps today
- ETH / TRENCHR (0.00% fee) — 24h volume $0, TVL $70, 0 swaps today
- ETH / DIVS (0.00% fee) — 24h volume $0, TVL $4.43, 0 swaps today
- ETH / TIZO (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / AETHER (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / TEYE (0.00% fee) — 24h volume $0, TVL $2.32, 0 swaps today
- ETH / ASTRA (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / KING (0.00% fee) — 24h volume $0, TVL $0.34, 0 swaps today
- ETH / HOUND (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / MGKCAT (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / HOUND (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / DOVE (0.00% fee) — 24h volume $0, TVL $0.44, 0 swaps today
- ETH / KING (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / HORST (0.00% fee) — 24h volume $0, TVL $1.16, 0 swaps today
- ETH / BOX (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / PARTYHAT (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / PEPEUNITED (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / BROS (0.00% fee) — 24h volume $0, TVL $2.36, 0 swaps today
- ETH / SPEPE (0.00% fee) — 24h volume $0, TVL $2.36, 0 swaps today