Token hook on Robinhood Chain

Uniswap v4 Hook Contract 0xfdd802b59582833acaf4145b7775beab61b860cc on Robinhood Chain · Token

Volume (24h)
$1.05K
Value locked (TVL)
$1.05K
All-time volume
$1.05K
Pools using this hook
1
Swaps (24h)
21 (1 traders)
Total swaps
21

What it does

This hook charges every trader in pools with its configured token an owner-adjustable swap tax (exact cap unverified), which is sent to an owner-chosen tax wallet, while LPs can add and withdraw liquidity freely.

How it works step by step

  • Charges a tax on swaps in pools that include a specific token set by the owner.
  • Collects the tax from swap amounts using return deltas and holds it as claims in the Uniswap v4 PoolManager.
  • Lets the tax be claimed and sent to a tax wallet chosen by the owner.
  • Checks at pool creation that the pool involves the configured token.
  • The owner can change the tax rate, the token and the tax wallet. The maximum tax rate could not be read from the bytecode.
Swap behaviour
On each swap the hook takes a tax cut from the swap amount, either before or after the swap, through return deltas. The exact percentage is a stored value the owner can change, and its cap is unknown from bytecode.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
A tax rate stored in the contract is applied to swaps. The owner can change it through an admin function that has a BadParam check, but the limit behind that check could not be confirmed. Collected tax goes to the owner-set tax wallet when claimed.
Owner & admin controls
The owner can set the tax rate (the maximum could not be verified), the taxed token and the tax wallet, can trigger tax claims, and can transfer ownership.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: restricts pools to the configured token; beforeSwap: computes and may take the tax on the input side; afterSwap: may take the tax on the output side; beforeSwapReturnDelta/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 tax rate, the taxed token and the tax recipient. The worst case is raising the swap tax to whatever unverified cap exists.

Risk to user funds: The hook can deduct the tax percentage from traders' swap amounts; the maximum rate is unknown from bytecode. It cannot touch LP principal, and LPs can always withdraw.

Security findings

  • [medium] Owner-adjustable swap tax: The owner can change the tax rate applied to swaps. A parameter check exists, but its exact cap could not be confirmed from unverified bytecode.
  • [info] Tax routed to owner-chosen wallet: Collected tax is credited to a tax wallet that the owner can change at any time.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook cannot block or charge LP withdrawals.

Contract details

Verified source
No
Bytecode size
4,095 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, ownable, return-delta, self-unlock, tax

Pools using Token hook