Fee sharing hook on Robinhood Chain
Uniswap v4 Hook Contract 0xbafa61ac89b2b9cca1cc507c67207800a45880c4 on Robinhood Chain · Fee sharing
- Volume (24h)
- $0
- Value locked (TVL)
- <$0.01
- All-time volume
- $17.41M
- Pools using this hook
- 2
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 9,022
What it does
A Uniswap v4 hook on BSC that applies tiered dynamic fees to swaps and takes a hook fee on output to a configurable recipient.
How it works step by step
- Selects a swap fee from tier one, two or three settings or a default fee
- Can pause swaps through an owner-controlled paused flag
- Takes a share of swap output using afterSwapReturnDelta and transfers it
- Sends collected hook fees to a hookFeeRecipient address
- Exposes owner-gated fee and recipient configuration
- Swap behaviour
- beforeSwap selects a fee tier for the swap (and can block it when paused); afterSwap settles accounting and the hook claims part of the output currency via return delta.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Hook reads tiered fee configuration (tierOne/Two/ThreeFee, defaultFee, per-address fee mapping) and a hookFeeRecipient; it appears to take a hook fee from swaps and route it to a recipient. Exact split logic could not be confirmed.
- Owner & admin controls
- Owner-gated functions (owner() getter present, c077e3cd and 5ae10390 write to owner-linked slots); pause/unpause via ACTION_SET_PAUSED and paused() flag; fee tiers (tierOneFee, tierTwoFee, tierThreeFee, defaultFee) and hookFeeRecipient appear adjustable by the owner. Exact setter authorization not confirmed from decoded bytecode.
Enabled Uniswap v4 callbacks
beforeSwap, afterSwap, afterSwapReturnDelta
beforeSwap: computes dynamic fee/tier for the swap and may pause or validate the swap. afterSwap: performs post-swap accounting and fee collection. afterSwapReturnDelta: lets the hook take a share of the swap output currency, which is then transferred out via the transfer/take path.
Security & trust assessment
Risk level: medium (decoded bytecode, low confidence).
Who controls it: The owner can likely change fee tiers, the hook fee recipient and pause the hook, redirecting fee revenue or halting swaps for the pool.
Risk to user funds: The hook can take a share of swap output tokens through return deltas and transfer them to the fee recipient; it can also pause swaps, so users may be unable to trade during a pause. It does not appear to custody LP liquidity directly.
Security findings
- [medium] Hook takes swap output via return delta: afterSwapReturnDelta is enabled and the bytecode includes take and transfer selectors, so the hook can claim part of swap proceeds.
- [medium] Owner pause can halt swaps: paused() and ACTION_SET_PAUSED indicate an owner-controlled pause that can block swaps routed through this hook.
- [medium] Owner can change fees and recipient: Owner-linked storage and setter-like selectors suggest the owner can change fee parameters and the fee recipient without a timelock visible in the input.
- [info] No source verification: Upgradeability and proxy status not determinable from the provided bytecode; no source to verify.
Contract details
- Verified source
- No
- Bytecode size
- 13,694 bytes
- Upgradeable proxy
- No
- Detected patterns
- moves-currency, pausable, return-delta
Pools using Fee sharing hook
- ETH / USDG (Dynamic fee) — 24h volume $0, TVL <$0.01, 0 swaps today
- WETH / USDG (Dynamic fee) — 24h volume $0, TVL <$0.01, 0 swaps today