Token hook on Robinhood Chain

Uniswap v4 Hook Contract 0x1d6c4ab956293bb7c0dc841cbc3990025611c0cc on Robinhood Chain · Token

Volume (24h)
$117
Value locked (TVL)
$0
All-time volume
$117
Pools using this hook
1
Swaps (24h)
585 (579 traders)
Total swaps
585

What it does

A token tax hook that charges fixed buy and sell taxes of unverified size on every swap and uses the proceeds for owner-managed buybacks, while other LPs can add and withdraw liquidity freely.

This read was written for the hook 0x9efb…00cc on Robinhood Chain and reused here: the two share a code shape, so constants such as fees, owners and addresses can differ.

How it works step by step

  • Charges a buy tax and a sell tax on swaps in a single token/quote pool; the exact rates are fixed constants that cannot be read from bytecode alone.
  • Collects the tax inside the hook and tracks the total tax collected.
  • Can use the collected tax to buy back the token, either automatically after swaps or when an operator calls the buyback function, with owner-set chunk sizes and minimum amounts.
  • Holds a Uniswap v4 LP position NFT that stays locked until an unlock time. The owner can extend the lock, collect that position's fees, and withdraw it after the lock ends.
Swap behaviour
On each swap the hook takes a tax from the swap amounts, with separate fixed rates for buys and sells, and keeps it in the hook. It may also run an automatic buyback swap if that is enabled.
Liquidity behaviour
No liquidity callbacks are enabled, so other LPs can add and withdraw freely. The hook's own position NFT is time-locked and can only be withdrawn by the owner after the lock expires.
Fee behaviour
Fixed buy and sell tax constants are taken from swaps in addition to the pool fee, but the exact percentages are not visible in the decoded bytecode. The collected tax is used for token buybacks managed by the owner and operator.
Owner & admin controls
The owner can turn buybacks on or off, toggle auto-buyback, set the buyback operator and buyback parameters, extend the LP lock, collect fees from the locked position, and withdraw it after the lock ends. The tax rates appear to be constants, so they cannot be changed.

Enabled Uniswap v4 callbacks

beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeSwap: computes and takes the tax on the input side; afterSwap: takes the tax on the output side and can trigger an auto-buyback; beforeSwapReturnDelta and afterSwapReturnDelta: let the hook deduct the tax from swap amounts.

Security & trust assessment

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

Who controls it: A single owner controls the buyback settings, the operator role, and the hook-held LP position. There is no visible function to change the tax rates.

Risk to user funds: Traders pay fixed buy and sell taxes of unverified size, taken during swaps. LP principal in the pool cannot be locked or drained by the hook.

Security findings

  • [medium] Swap tax via return deltas: The hook deducts fixed buy and sell taxes from swaps. The rates are constants, but their exact values cannot be confirmed without verified source.
  • [low] Owner-controlled buyback funds: The owner and the buyback operator decide when the accumulated tax is spent on buybacks.
  • [info] Locked LP is owner property: The hook's LP NFT can be withdrawn by the owner after the lock expires. Other LPs' withdrawals are never touched by the hook.

Contract details

Verified source
No
Bytecode size
13,135 bytes
Upgradeable proxy
No
Detected patterns
erc20, moves-currency, ownable, return-delta, self-unlock

Pools using Token hook