RewardsHook on Robinhood Chain
Uniswap v4 Hook Contract 0x5d272a2c3e6177ffc1372dd293084c32593d60cc on Robinhood Chain · Rewards · Verified contract
- Volume (24h)
- $100
- Value locked (TVL)
- $1.45K
- All-time volume
- $1.13M
- Pools using this hook
- 1
- Swaps (24h)
- 2 (2 traders)
- Total swaps
- 12,825
What it does
This hook charges taxed buyers and sellers an ETH fee of up to 5% (5% by default), while exempt wallets and launch-block swaps pay nothing extra, and uses the collected ETH to buy a reward token that is distributed to holders; LPs can add and withdraw freely.
How it works step by step
- Charges a fee in ETH on taxed buys and sells, set at 5% each by default and capped at 5% by the code.
- Collects the fee into the hook. Once about 0.2 ETH builds up (the owner can change this level), it buys a chosen reward token on Uniswap V3.
- Sends the bought reward tokens to the project token contract, which shares them out to holders in proportion to their holdings.
- Swaps in the same block the pool was created are not taxed. Wallets the owner marks as tax-exempt are never taxed.
- Exact-output sells (where you name the exact ETH amount you want back) are rejected on taxed swaps.
- Swap behaviour
- On taxed swaps the hook takes a cut of the ETH side of the trade: on exact-input buys it comes out of your ETH before the swap, and on other buys and on exact-input sells it comes out of the ETH amount after the swap. Exact-output sells revert, while exempt wallets and swaps in the pool's first block pay nothing extra.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Buy and sell fees are each 0% to 5% of the ETH amount (both 5% by default) and are charged on top of the pool's normal LP fee. The fees go to the hook and are periodically turned into reward tokens for token holders, unless the owner withdraws them first.
- Owner & admin controls
- The owner can set the buy and sell fees anywhere from 0% to 5%, change the distribution threshold and the V3 pool fee tier, exempt any wallets from tax, and force a buy-and-distribute. The owner can also withdraw all ETH and tokens held by the hook (the collected fees) through emergency withdraw functions.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
beforeInitialize records the pool's creation block so the launch block is untaxed; beforeSwap takes the buy fee on exact-input buys; afterSwap takes the fee on exact-output buys and exact-input sells; the two swap return-delta permissions let the hook deduct those fees from the swap amounts.
Security & trust assessment
Risk level: low (verified source, high confidence).
Who controls it: A single owner (the deployer) controls fee rates within 0% to 5%, the tax exemption list and the distribution settings, and can withdraw any ETH or tokens accumulated in the hook. The owner cannot touch LP positions.
Risk to user funds: The hook takes at most 5% of the ETH side of each taxed swap. LP principal is never touched and withdrawals are unrestricted.
Security findings
- [info] Fees capped at 5%: The buy and sell fees are hard-capped at 5% each in the code.
- [low] Owner can withdraw collected fees: The emergency withdraw functions let the owner take any ETH or tokens sitting in the hook. That means accrued fees can be redirected away from holder rewards; LP funds held in the PoolManager are not affected.
- [low] Reward buys have no slippage protection: The hook buys the reward token with a minimum output of zero, so these buys can be sandwiched by MEV bots. The loss is limited by keeping the distribution threshold small.
- [info] Selective tax exemption: The owner can exempt any wallet from fees. Exemption is checked against the wallet that started the transaction.
Contract details
- Verified source
- Yes (RewardsHook)
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Bytecode size
- 8,507 bytes
- Upgradeable proxy
- No
- Detected patterns
- dynamic-fee, erc20, moves-currency, ownable, return-delta, rewards, tax
Pools using RewardsHook
- ETH / CASHKITTEN (0.00% fee) — 24h volume $100, TVL $1.45K, 2 swaps today