Likely custom pricing hook on Robinhood Chain

Uniswap v4 Hook Contract 0x896ef4e049212284dab0a85e0df2af7b4664c583 on Robinhood Chain · Access control

Volume (24h)
$1.29K
Value locked (TVL)
$923
All-time volume
$80.62K
Pools using this hook
1
Swaps (24h)
15 (10 traders)
Total swaps
892

What it does

A Uniswap v4 hook with owner-set dynamic fees and anti-bot or lottery-style features that adjusts swaps and captures a share of liquidity flows, based on decoded bytecode.

How it works step by step

  • Runs a beforeSwap callback that likely applies a dynamic fee and bot or lottery checks
  • Runs afterAddLiquidity and afterRemoveLiquidity callbacks after LP changes
  • Returns balance deltas on liquidity events, so it can take a share of token flows
  • Stores owner-configurable fee values (execution, bot and resting fees)
  • Maintains lottery configuration and per-address flags
  • Provides an owner withdrawal function for tokens held by the hook
Swap behaviour
beforeSwap is enabled, so the hook runs logic before each swap, likely applying a dynamic or bot-aware fee. Exact pricing effects are not confirmed without source.
Liquidity behaviour
afterAddLiquidity and afterRemoveLiquidity callbacks are enabled and return balance deltas, so the hook can take or give back tokens on liquidity changes. It also tracks liquidity-related state (a uint128 accumulator and a per-address flag).
Fee behaviour
Fees appear to be dynamic and privileged: storage slots hold an execution fee, a bot fee and a resting fee that the owner can set, and a per-address fee mapping exists. Exact fee application logic in beforeSwap cannot be determined from decoded selectors alone.
Owner & admin controls
Owner-only functions (transferOwnership, setters for fee, lottery and whitelist-style mappings such as 0x6bed8b30, 0xa9a7616c, 0xd8d16cc3, 0xc2edccb4 and 0x39786a63 writing per-address flags or fee values, plus withdraw(address,address,uint256)). Owner can also change lottery configuration and set the pool's execution fee and resting fee. Specific parameter ranges cannot be confirmed without source.

Enabled Uniswap v4 callbacks

afterAddLiquidity, afterRemoveLiquidity, beforeSwap, afterAddLiquidityReturnDelta, afterRemoveLiquidityReturnDelta

afterAddLiquidity: runs logic after LP deposits and can adjust the returned delta. afterRemoveLiquidity: runs logic after LP withdrawals and can adjust the returned delta. beforeSwap: runs logic before each swap, likely to set or apply a dynamic fee and possibly a lottery or bot-related check. afterAddLiquidityReturnDelta and afterRemoveLiquidityReturnDelta: allow the hook to take a share of liquidity flows as a delta.

Security & trust assessment

Risk level: medium, estimated (decoded bytecode, low confidence).

Who controls it: The owner holds broad control: it can change fee parameters, whitelist or flag addresses, adjust lottery settings, transfer ownership and withdraw tokens held by the hook. A malicious or compromised owner could redirect fees or drain hook-held balances.

Risk to user funds: The hook can hold and move tokens through return deltas on liquidity events and owner-only withdrawal, and its fee settings can alter swap outcomes for users. Funds are exposed to owner action.

Security findings

  • [medium] Return-delta fund capture: The hook uses return deltas on liquidity callbacks, so it can take a portion of tokens from LP adds and removes.
  • [medium] Owner withdrawal of hook balances: A withdraw(address,address,uint256) function is present and gated to the owner according to the ownable heuristic, so accumulated tokens can be moved by the owner.
  • [medium] Privileged fee and address flags: Owner can set fee values and per-address flags that affect swap and liquidity treatment, which can single out or penalise specific addresses.
  • [info] Lottery and bot-fee mechanism: Presence of a lottery configuration and bot-fee logic suggests a reward or anti-bot mechanism whose parameters are owner-controlled.
  • [info] Unverified source: Source is unverified and analysis relies on selectors and storage inference, so exact behaviour may differ from this description.

Contract details

Verified source
No
Bytecode size
14,932 bytes
Upgradeable proxy
No
Detected patterns
ownable, return-delta

Pools using Likely custom pricing hook