CarvyTaxHook on Ethereum

Uniswap v4 Hook Contract 0xba0122f20ef22f77836a1166440ede0d6a1220cc on Ethereum · Token · Verified contract

Volume (24h)
$8.41K
Value locked (TVL)
$7.73K
All-time volume
$8.41K
Pools using this hook
1
Swaps (24h)
106 (39 traders)
Total swaps
106

What it does

This hook charges every buy and sell in the ETH/CARVY pool a fixed 3% tax that goes to the project's tax wallet, with trading opened once by the owner and LPs free to withdraw at any time.

How it works step by step

  • Charges a fixed 3% tax on buys and a fixed 3% tax on sells in the official ETH/CARVY pool; the rates are constants and can never change.
  • Sends the tax straight to a tax wallet, in ETH whenever ETH is the side that can be charged (otherwise in CARVY).
  • Blocks all swaps until the owner opens trading once; after that trading can never be closed.
  • Only the deployer can create the single allowed ETH/CARVY pool, which stops anyone from front-running the launch price.
  • Does not touch liquidity; LPs add and withdraw through the standard Uniswap position manager.
Swap behaviour
Swaps revert until trading is enabled. After that, every buy or sell pays a 3% tax taken from the ETH input on exact-input buys, or from the unspecified side of the swap (ETH or CARVY) in other swap types, and the tax is sent to the tax wallet.
Liquidity behaviour
No liquidity callbacks; LPs can add and withdraw freely.
Fee behaviour
Fixed 3% tax on buys and 3% on sells, on top of the pool's normal LP fee, paid to the tax wallet. The rates are hard-coded and cannot be changed.
Owner & admin controls
The owner can enable trading once (it cannot be turned off), change the tax wallet, and transfer or renounce ownership. The owner cannot change tax rates or touch liquidity.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize: restricts pool creation to the deployer and the ETH/CARVY pair; beforeSwap: enforces the trading switch and takes the 3% ETH tax on exact-input buys; afterSwap: takes the 3% tax on all other swap types; beforeSwapReturnDelta/afterSwapReturnDelta: let the hook charge the tax out of swap amounts.

Security & trust assessment

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

Who controls it: A single owner can open trading once and redirect where the 3% tax goes. The owner cannot pause trading after launch, change rates, or touch LP funds.

Risk to user funds: The hook takes exactly 3% of each swap and sends it to the tax wallet. It holds no funds, and LP principal cannot be locked or drained.

Security findings

  • [info] Fixed 3% buy/sell tax: Both tax rates are hard-coded constants at 3%, so no one can raise them.
  • [info] One-time trading switch: Swaps revert until the owner calls enableTrading. Once enabled, trading cannot be paused again.
  • [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook can never block or tax LP withdrawals.

Contract details

Verified source
Yes (CarvyTaxHook)
Compiler
solc 0.8.26+commit.8a97fa7a
Bytecode size
5,085 bytes
Upgradeable proxy
No
Detected patterns
moves-currency, ownable, return-delta, tax

Pools using CarvyTaxHook