ReferralCoinHook on Base

Uniswap v4 Hook Contract 0x77424a443429be042afd9d88421945efa38e6acc on Base · Launchpad · Verified contract

Volume (24h)
$13.92K
Value locked (TVL)
$0
All-time volume
$13.92K
Pools using this hook
1
Swaps (24h)
32 (15 traders)
Total swaps
32

What it does

This launchpad-style ETH/FLASH hook charges buyers and sellers a capped ETH fee (1.69% if referred, 6.90% if not), with sellers paying extra impact and ETH taxes up to 11%, and lets only the owner provide pool liquidity.

How it works step by step

  • Runs the single ETH/FLASH referral-coin pool, which only the owner can create; LP fees are forced to 0%.
  • Charges an ETH swap fee of up to 1.69% for referred traders and up to 6.90% for unreferred traders, split among referrers, a top-100 leaderboard, the treasury and a King of the Hill game.
  • On sells, takes a FLASH price-impact tax plus an ETH sell tax, together capped at 11%.
  • Fills part of trades off-curve from community buckets and a churn deck, at prices no worse than the curve price.
  • Only the owner context can add or remove pool liquidity; outside LPs are blocked.
Swap behaviour
Each swap pays an ETH fee (max 1.69% if referred, 6.90% if not), and sells also pay impact and ETH taxes capped at 11% combined. Part of the trade may be filled by hook-managed buckets or a deck at prices no worse than the curve, and the rules come from an upgradeable policy module bounded by these hard-coded caps.
Liquidity behaviour
Adding and removing liquidity is restricted to the hook itself, used by the owner, or an owner context approved by the policy module, and anyone else is reverted. In practice the pool liquidity is owner-controlled protocol liquidity, not open to public LPs.
Fee behaviour
The LP fee is 0%, and the hook charges an ETH fee of up to 1.69% for referred traders or 6.90% for unreferred ones, plus sell taxes up to 11% total, with the caps immutable. Fees go to the registry (referrers, top-100, treasury), the churn module, the KOTH module, and Uniswap's protocol fee jar.
Owner & admin controls
The owner, who is the owner of the upgradeable policy module, controls pool creation, liquidity, a one-time KOTH module setting, and fee rates and splits through the upgradeable modules. The swapper's cost stays capped at 6.90% fee plus 11% sell taxes by immutable hook code.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeAddLiquidity, beforeRemoveLiquidity, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: only the owner can create the one ETH/FLASH dynamic-fee pool; beforeAdd/RemoveLiquidity: restricts liquidity changes to the owner context; beforeSwap: plans fees, taxes and OTC fills and returns deltas; afterSwap: settles fees, taxes and fills and distributes them; swap return deltas: used to take fees and taxes from swaps and to fill trades OTC.

Security & trust assessment

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

Who controls it: The policy module's owner controls all liquidity and the upgradeable fee and fill modules, within the hard-coded caps. They can pull the pool's liquidity, but cannot charge swappers above the caps.

Risk to user funds: The hook takes up to 6.90% of a swap in ETH fees plus up to 11% sell taxes, and the hook itself holds no funds between transactions. There are no public LPs, and owner liquidity is removable only by the owner.

Security findings

  • [medium] Upgradeable policy modules: Fee, tax and fill logic lives in upgradeable modules, but the hook clamps their output to at most a 6.90% fee and 11% sell taxes, with OTC fills at prices no worse than the curve.
  • [medium] Owner-only liquidity: Only the owner context can add or remove liquidity, so pool depth depends on the owner, who can withdraw it at any time.
  • [low] Sell taxes: Sellers pay up to about 17.9% combined (6.90% fee plus 11% taxes), which is bounded but significant.

Contract details

Verified source
Yes (ReferralCoinHook)
Compiler
solc 0.8.26+commit.8a97fa7a
Bytecode size
20,111 bytes
Upgradeable proxy
No
Detected patterns
erc20, fee-sharing, launchpad, moves-currency, ownable, return-delta, self-unlock, tax

Pools using ReferralCoinHook