ArmoreumV4TaxHook on Ethereum

Uniswap v4 Hook Contract 0x6982b35ffaa63d8df6aceb8f7238dedaf80160cc on Ethereum · Fee sharing · Verified contract

Volume (24h)
$11.58K
Value locked (TVL)
$1.49K
All-time volume
$11.58K
Pools using this hook
1
Swaps (24h)
91 (52 traders)
Total swaps
91

What it does

A launch-token hook that applies a trade tax on swaps via an external tax router and can restrict swaps with a jail mechanism.

How it works step by step

  • Validates pool initialization against a stored launch token and pool manager in beforeInitialize
  • Checks each swap in beforeSwap against a jail seed and swap nonce
  • Collects trade taxes through an external tax router via collectTradeTaxes
  • Takes currency from swaps with take() using return-delta permissions
  • Lets the admin reconfigure the tax router and jail seed
Swap behaviour
beforeSwap and afterSwap perform checks and tax collection through the tax router, using return deltas to take currency from the swap.
Liquidity behaviour
No liquidity callbacks.
Fee behaviour
Trade taxes are collected by an external tax router via collectTradeTaxes(uint256,bytes32) and are not part of the pool's static fee; the tax amount and split logic could not be determined from bytecode alone.
Owner & admin controls
An admin address (storage slot 0) can call configureTaxRouter (selector 0x159ea6bc) and configureJailSeed (0xb7078032) to repoint the tax router and jail seed. No pause or upgrade functions were identified in the decoded selectors.

Enabled Uniswap v4 callbacks

beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta

beforeInitialize validates pool initialization against a stored launch token and pool manager; beforeSwap and afterSwap run swap-time checks and tax logic; beforeSwapReturnDelta and afterSwapReturnDelta allow the hook to take or account currency deltas from swaps.

Security & trust assessment

Risk level: medium (decoded bytecode, low confidence).

Who controls it: The admin can reconfigure the tax router address and jail seed. Pointing the tax router at a malicious contract could redirect trade taxes or alter swap outcomes for all users.

Risk to user funds: The hook can take currency from swaps through return deltas and forward it to the tax source, so trader proceeds are directly exposed to the tax mechanism and to the admin-controlled tax router address.

Security findings

  • [medium] Hook takes currency from swaps via return deltas: Hook holds beforeSwapReturnDelta and afterSwapReturnDelta and calls take(address,address,uint256), so it can extract currency from swaps before and after execution.
  • [medium] Admin can repoint tax router: configureTaxRouter (0x159ea6bc) is callable by the stored admin with no timelock visible in bytecode, allowing immediate rerouting of tax flows.
  • [info] Jail mechanism gates swaps: beforeSwap and afterSwap read a jail seed and swap nonce, indicating swaps may be restricted or penalized based on a configurable jail mechanism.
  • [info] Unverified source: Source is unverified, so the exact tax rate, jail conditions and admin role checks are inferred from selectors and storage only.

Contract details

Verified source
Yes (ArmoreumV4TaxHook)
Compiler
solc 0.8.28+commit.7893614a
Bytecode size
4,241 bytes
Upgradeable proxy
No
Detected patterns
launchpad, moves-currency, return-delta, tax

Pools using ArmoreumV4TaxHook