V4funFeeHook on Robinhood Chain
Uniswap v4 Hook Contract 0x51890fec51d0975c1c35d04e7a8b0221bc8500cc on Robinhood Chain · Fee sharing · Verified contract
- Volume (24h)
- $0
- Value locked (TVL)
- $0.66
- All-time volume
- $1.51K
- Pools using this hook
- 1
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 788
What it does
Every buy and sell through this pool pays a fixed 3 percent fee in ETH that is sent to an immutable fee recipient, so buys and sells are charged the same rate.
How it works step by step
- Charges a flat 3 percent (300 bps) fee on every buy and every sell of the pool's token, collected in native ETH (currency0).
- On swaps where ETH is the specified currency, skims the fee in beforeSwap by calling poolManager.take to feeRecipient and returning a positive specified delta to the swapper.
- On swaps where ETH is the unspecified currency, skims the fee in afterSwap from the ETH leg of the balance delta and sends it to feeRecipient.
- Emits FeeTaken(isBuy, ethAmount) for each fee collection.
- Fee rates are compile-time constants (BUY_FEE_BPS and SELL_FEE_BPS are both 300) and the recipient is an immutable address set in the constructor.
- Swap behaviour
- Every swap pays the same 3 percent fee on the ETH amount: buys (zeroForOne) and sells (oneForZero) are charged equally. Exact-input and exact-output swaps are both handled; the fee is taken from the specified ETH amount in beforeSwap or from the unspecified ETH delta in afterSwap, and the fee is sent to feeRecipient rather than the pool.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Uses the pool's static fee for the pool itself; the hook adds a separate fixed 3 percent fee on both buys and sells, paid in ETH and sent to the immutable feeRecipient. The fee is zero when the computed amount rounds down to zero.
- Owner & admin controls
- No admin controls found. The fee rates are constants and the fee recipient is immutable, so there is no owner, pause, upgrade or parameter-change function in the ABI.
Enabled Uniswap v4 callbacks
beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeSwap is used to skim the ETH fee from the specified amount and return it as a positive specified delta to the swapper. afterSwap is used to skim the ETH fee from the unspecified ETH leg of the balance delta. beforeSwapReturnDelta and afterSwapReturnDelta allow these hooks to adjust the swapper's settled amounts, which is how the fee is actually charged.
Security & trust assessment
Risk level: medium (verified source, high confidence).
Who controls it: No privileged role can change fees, pause swaps or redirect fees after deployment; the only trusted party is the immutable feeRecipient, which receives funds but cannot alter swap logic.
Risk to user funds: The hook takes ETH from the pool and sends it to feeRecipient on every swap via poolManager.take, and returns deltas that adjust what the swapper pays or receives; it does not hold a balance itself and cannot block swaps, so user funds are exposed only to the fixed 3 percent fee.
Security findings
- [info] Fee recipient is immutable: feeRecipient is set once in the constructor and cannot be changed, so fees always go to the address chosen at deployment.
- [info] Return deltas let the hook charge the swapper: The hook returns a positive specified delta in beforeSwap and a positive unspecified delta in afterSwap, and it calls poolManager.take directly, so it moves ETH out of the pool to feeRecipient on every qualifying swap.
- [low] Fee rate is hardcoded at 3 percent with no ceiling: BUY_FEE_BPS and SELL_FEE_BPS are constants equal to 300 bps; they cannot be lowered or raised after deployment, which removes admin fee manipulation risk but also means the fee cannot be adjusted.
- [info] Fee is charged on ETH legs only: If the pool's ETH leg is zero or the computed fee rounds down to zero, no fee is taken; swaps still succeed, so the hook cannot block trades.
Contract details
- Verified source
- Yes (V4funFeeHook)
- Compiler
- solc 0.8.28+commit.7893614a
- Bytecode size
- 2,930 bytes
- Upgradeable proxy
- No
- Detected patterns
- fee-sharing, moves-currency, return-delta
Pools using V4funFeeHook
- ETH / ROVARA (0.00% fee) — 24h volume $0, TVL $0.66, 0 swaps today