Token hook on Ethereum
Uniswap v4 Hook Contract 0xc4be05029e0aefdf079dc53b19525474bba7a044 on Ethereum · Token
- Volume (24h)
- $0
- Value locked (TVL)
- $2.17
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 7 (3 traders)
- Total swaps
- 7
What it does
This token hook charges fixed buy and sell taxes on every swap, taken from the trade output and sent to a creator vault, while LPs can add and withdraw liquidity freely.
How it works step by step
- Charges a buy tax and a sell tax on swaps, taken from the swap output after each trade.
- Collects the tax through the Uniswap v4 PoolManager and routes it to a vault and/or a creator payee (a 'sanctum' address is also referenced).
- Appears to approve the collected tokens to a vault contract (which exposes an asset), likely depositing taxes for the token creator.
- Runs a check when a pool is created, likely restricting which pools can use the hook.
- Has no liquidity callbacks, so LPs add and remove liquidity normally.
- Swap behaviour
- After each swap the hook takes a tax from the trader's output using a return delta, with separate fixed rates for buys and sells. The exact percentages are constants in the bytecode and could not be read from the decoded data.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- A fixed buy tax and a fixed sell tax, expressed in basis points as hard-coded constants, are deducted from swap output and sent to a vault or creator payee. The exact rates are not visible from the decoded bytecode, and no setter functions exist to change them.
- Owner & admin controls
- No admin controls found; the tax rates, vault, and related addresses appear to be immutable constants with no setter functions.
Enabled Uniswap v4 callbacks
beforeInitialize, afterSwap, afterSwapReturnDelta
beforeInitialize: validates pool setup when a pool is created; afterSwap: computes the buy or sell tax after the trade; afterSwapReturnDelta: deducts that tax from the trader's swap output.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, medium confidence).
Who controls it: No owner or admin functions were found; recipients such as the vault and creator payee appear fixed at deployment. The creator benefits from the taxes but cannot change them.
Risk to user funds: The hook can only take a fixed buy or sell tax from traders' swap output, at rates not readable from the bytecode. LP principal cannot be locked or drained.
Security findings
- [low] Unverified tax rates: The hook deducts buy and sell taxes from swap output, but because the source is unverified the exact rates, and whether buys and sells are taxed very differently, cannot be confirmed.
- [info] No admin setters: Only view getters and the hook callbacks are exposed, so tax rates and recipients cannot be changed after deployment.
- [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so the hook can never block or tax LP withdrawals.
Contract details
- Verified source
- No
- Bytecode size
- 2,609 bytes
- Upgradeable proxy
- No
- Detected patterns
- liquidity-management, moves-currency, return-delta, tax
Pools using Token hook
- SHROUD / RAIL (0.00% fee) — 24h volume $218, TVL $2.17, 7 swaps today