Skip to content

Add TaxHook hook on ethereum - #7133

Merged
Ponx merged 1 commit into
mainfrom
hooks/ethereum/0xd110e745ae77eca2d1ef631b27e426eebaa9c0cc
Sep 16, 2026
Merged

Ponx merged 1 commit into
mainfrom
hooks/ethereum/0xd110e745ae77eca2d1ef631b27e426eebaa9c0cc

Conversation

@hooklist-generator

Copy link
Copy Markdown
Contributor

Summary

Charges a fixed 3% (300 bps) tax on every ETH/TOKEN pool swap by taking the tax amount from the pool manager and forwarding it to a hardcoded treasury address. Tax is applied on buys (via beforeSwap delta) and sells (via afterSwap delta).

Flags

Flag Value
beforeInitialize false
afterInitialize false
beforeAddLiquidity false
afterAddLiquidity false
beforeRemoveLiquidity false
afterRemoveLiquidity false
beforeSwap true
afterSwap true
beforeDonate false
afterDonate false
beforeSwapReturnsDelta true
afterSwapReturnsDelta true
afterAddLiquidityReturnsDelta false
afterRemoveLiquidityReturnsDelta false

Properties

Property Value
dynamicFee false
upgradeable false
requiresCustomSwapData false
vanillaSwap false
swapAccess none

Warnings

  • Submitter did not provide a name. Using AI-derived "TaxHook".
  • Submitter did not provide a description. Using AI-generated description.
  • Source comments explicitly describe architectural separation from the token contract to evade token scanner detection (gmgn), suggesting deliberate obfuscation of the 3% tax mechanism from users and scanners.

Closes #7119

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

Deployment failed for project hooklist with the following error:

Resource is limited - try again in 60 minutes (more than 450, code: "api-deployments-paid-per-hour").

Learn More: https://vercel.com/uniswap?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hooklist Ready Ready Preview Sep 16, 2026 9:16pm UTC

Request Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: hooks/ethereum/0xd110e745ae77eca2d1ef631b27e426eebaa9c0cc.json

Address Flags

Decoded lowest 14 bits of 0x...c0cc (0xC0CC = 1100 0000 1100 1100 binary):

Bit Flag Expected Hook File
13 beforeInitialize false false ✓
12 afterInitialize false false ✓
11 beforeAddLiquidity false false ✓
10 afterAddLiquidity false false ✓
9 beforeRemoveLiquidity false false ✓
8 afterRemoveLiquidity false false ✓
7 beforeSwap true true ✓
6 afterSwap true true ✓
5 beforeDonate false false ✓
4 afterDonate false false ✓
3 beforeSwapReturnsDelta true true ✓
2 afterSwapReturnsDelta true true ✓
1 afterAddLiquidityReturnsDelta false false ✓
0 afterRemoveLiquidityReturnsDelta false false ✓

Also confirmed by getHookPermissions() in the verified source.

Properties

  • dynamicFee: false_beforeSwap returns 0 as the fee override slot and updateDynamicLPFee() is never called. ✓
  • upgradeable: falseTAX_ADMIN is a constant, TOKEN is immutable, no proxy pattern, no delegatecall to a mutable address, no SELFDESTRUCT. ✓
  • requiresCustomSwapData: falsehookData parameter is ignored in both callbacks. ✓
  • vanillaSwap: falsebeforeSwapReturnsDelta and afterSwapReturnsDelta are both true; the hook actively takes 3% from swap amounts. Correctly false. ✓
  • swapAccess: "none" — No access control on swaps. Pools that don't match _isOurPool() (ETH/TOKEN) simply receive zero deltas; any caller may swap. ✓

Metadata

  • name: "TaxHook" matches contractName from Etherscan source metadata. ✓
  • chainId: 1 (ethereum mainnet) is correct. ✓
  • verifiedSource: true confirmed by source_meta.json (verified: true, proxy: false). ✓
  • description is factually accurate: the contract charges TAX_BPS = 300 (3% / 300 bps), uses poolManager.take() to extract ETH, forwards it to the hardcoded TAX_ADMIN constant address, applies the tax on ETH→TOKEN buys in _beforeSwap (via returned BeforeSwapDelta) and TOKEN→ETH sells in _afterSwap (via returned int128 delta). No audit/safety/marketing language present. ✓

All fields verified against on-chain source. No issues found.

@Ponx Ponx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot review verified; bitmask/flags/properties check out. LGTM.

@Ponx
Ponx merged commit af36f81 into main Sep 16, 2026
7 checks passed
@Ponx
Ponx deleted the hooks/ethereum/0xd110e745ae77eca2d1ef631b27e426eebaa9c0cc branch September 16, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hook: 0xd110e745ae77eca2d1ef631b27e426eebaa9c0cc on ethereum

1 participant