UniversalKlikHook on Robinhood Chain

Uniswap v4 Hook Contract 0x745d717620052a97a22deee2e5eba59583f3e0cc on Robinhood Chain · Fee sharing · Verified contract

Volume (24h)
$1,000
Value locked (TVL)
$24.01K
All-time volume
$28.23M
Pools using this hook
6,884
Swaps (24h)
17 (16 traders)
Total swaps
395,412

What it does

Charges a market-cap-tiered ETH fee on Klik token swaps, splitting it between a platform treasury and the token's creator address, with zero fees in the launch block.

How it works step by step

  • Records each pool's deployment block in beforeInitialize and charges no fee in that block
  • Reads the token's market cap from a configurable factory contract to select a fee tier
  • Takes the fee in ETH via poolManager.take and returns deltas so the swap accounting reflects the fee
  • Splits each fee between platformTreasury and the token address according to platformBps and totalBps
  • Reverts exactOutput sells because the fee would require a pre-swap price lookup
Swap behaviour
ExactInput buys: ETH fee taken in beforeSwap. ExactOutput buys and exactInput sells: ETH fee taken in afterSwap. ExactOutput sells revert.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
Dynamic fee logic is applied through hook-taken fees rather than LP fee override: on exactInput buys ETH is taken in beforeSwap, and on exactOutput buys and exactInput sells the fee is taken in afterSwap. Fee rate is looked up from a tiered schedule keyed on the token's market cap read from the factory (default tiers from 1.00% down to 0.10% total, with platform/creator split). Pools have zero fee in their deployment block. If no factory is set, a flat 1% fee applies. The fee is split between a platform treasury and the token (creator) address.
Owner & admin controls
Owner (set to tx.origin at deployment, transferable via transferOwnership) can: set platform treasury, set factory address, set fee tiers via setFeeTiers (capped at 1.25% total fee per tier), rescue any ETH held by the hook via rescueETH, and transfer ownership. No pause or upgrade mechanism found; contract is not a proxy.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: records the pool's deployment block so the launch block is fee-free. beforeSwap: takes the fee in ETH for exactInput buys and distributes it to treasury and token address; returns a specified-side delta. afterSwap: takes the fee for exactOutput buys and exactInput sells where ETH is the unspecified currency; returns an unspecified-side delta. beforeSwapReturnDelta and afterSwapReturnDelta: enable the hook to alter swap accounting by the fee amounts it takes.

Security & trust assessment

Risk level: medium (verified source, high confidence).

Who controls it: The owner can change fee tiers within the 1.25% cap, redirect platform fees by changing the treasury address, set an arbitrary factory contract that determines market cap and therefore fee tier, and withdraw any ETH held by the hook. A compromised owner key could redirect fee flow or manipulate fee tiers via a malicious factory.

Risk to user funds: The hook takes ETH from swaps and forwards it to the platform treasury and the token contract address. Creator fee transfers use a required call, so if the token address rejects ETH the swap reverts. Failed treasury sends leave ETH in the hook, which the owner can withdraw via rescueETH. Swaps are reverted for exactOutput sells.

Security findings

  • [info] placeholder:

Contract details

Verified source
Yes (UniversalKlikHook)
Compiler
solc 0.8.30+commit.73712a01
Bytecode size
9,130 bytes
Upgradeable proxy
No
Detected patterns
dynamic-fee, moves-currency, ownable, return-delta, rewards

Pools using UniversalKlikHook