Token hook on Base
Uniswap v4 Hook Contract 0xa1b6598f5bd16d44b7774766aac266b5ee6f50cc on Base · Token
- Volume (24h)
- $0
- Value locked (TVL)
- $50
- All-time volume
- $0
- Pools using this hook
- 1
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 0
What it does
A token tax hook for the GLSP2 pool that charges buyers a price-dependent buy tax and sellers a fixed burn, sending proceeds to burns and a governance vault while leaving LP withdrawals unrestricted.
How it works step by step
- Applies a buy tax on purchases of the GLSP2 token in its pool (likely paired with USDT), using a tax table that depends on how far price has moved since pool start.
- Burns a share of GLSP2 on sells and routes part of the taxes to a governance vault.
- Tracks per-block start price and a 'gamma' factor bounded by built-in minimum and maximum constants.
- Keeps public statistics on total buy-tax burned, sell burns, buyback burns and amounts sent to governance.
- Swap behaviour
- On each swap the hook can take part of the input or output via return deltas: buys pay a variable buy tax from a stored table, and sells have a fixed burn rate applied, with portions burned and portions sent to the governance vault. Exact percentages are stored as constants and table values that cannot be fully read from bytecode.
- Liquidity behaviour
- No liquidity callbacks; LPs can add and withdraw freely.
- Fee behaviour
- Buy tax varies by a fixed table (set at deployment, no setter found) based on price movement; sells incur a fixed burn rate plus a governance share. Taxed tokens are burned or transferred to the governance vault; exact rates are unknown from bytecode.
- Owner & admin controls
- The owner can change the governance vault address that receives the tax share and transfer or renounce ownership. No functions to change tax rates or tables were found.
Enabled Uniswap v4 callbacks
afterInitialize, beforeSwap, afterSwap, beforeSwapReturnDelta, afterSwapReturnDelta
afterInitialize records the starting price and setup; beforeSwap tracks block start price and applies sell-side burn; afterSwap applies the buy tax; beforeSwapReturnDelta and afterSwapReturnDelta let the hook take its tax from swap amounts.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, medium confidence).
Who controls it: A single owner can change the governance vault receiving tax proceeds. Tax rates appear fixed at deployment.
Risk to user funds: The hook takes a portion of swap amounts as buy tax or sell burn at rates that cannot be confirmed from bytecode. LP principal cannot be locked or drained by the hook.
Security findings
- [medium] Swap taxes via return deltas: The hook deducts buy tax and sell burn from swaps using return deltas; the rate constants and table values could not be verified from unverified bytecode.
- [info] Owner sets tax recipient: The owner can redirect the governance share of taxes to any address but no rate setter exists.
- [info] LP withdrawals unrestricted: Remove-liquidity callbacks are disabled, so LPs can always withdraw.
Contract details
- Verified source
- No
- Bytecode size
- 8,581 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, liquidity-management, moves-currency, ownable, return-delta, tax
Pools using Token hook
- GLSP2 / USDT (0.00% fee) — 24h volume $0, TVL $50, 0 swaps today