Skip to content

Add UnigenHook hook on ethereum#603

Merged
marktoda merged 1 commit into
mainfrom
hooks/ethereum/0x02861997ca5d65d40fa34facdaa9f969c95fd0c0
Jun 3, 2026
Merged

Add UnigenHook hook on ethereum#603
marktoda merged 1 commit into
mainfrom
hooks/ethereum/0x02861997ca5d65d40fa34facdaa9f969c95fd0c0

Conversation

@hooklist-generator
Copy link
Copy Markdown

Summary

A Uniswap v4 hook that queues NFT mints for qualifying ETH-to-UGEN buyers in afterSwap and applies a reduced 1 bps fee override in beforeSwap for Tier-S wallet-age holders. Includes an admin-controlled whitelist gate for launch-window anti-sniper protection.

Flags

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

Properties

Property Value
dynamicFee true
upgradeable false
requiresCustomSwapData false
vanillaSwap false
swapAccess governance

Warnings

  • Submitter-proposed description rejected: exceeds 500-character limit and contains promotional/marketing language not verifiable from the source. Using AI-generated description.

Closes #602

@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

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

Project Deployment Actions Updated (UTC)
hooklist Ready Ready Preview, Comment May 31, 2026 5:34pm

Request Review

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Review: hooks/ethereum/0x02861997ca5d65d40fa34facdaa9f969c95fd0c0.json

Address Flags

Address ends in 0xd0c0 = 1101 0000 1100 0000 binary. Lower 14 bits:

  • bit 12 (afterInitialize) = 1 ✓
  • bit 7 (beforeSwap) = 1 ✓
  • bit 6 (afterSwap) = 1 ✓
  • All other bits = 0 ✓

Confirmed by getHookPermissions() in source — all flags match exactly.

Properties

  • dynamicFee: true_afterInitialize calls poolManager.updateDynamicLPFee(key, DEFAULT_LP_FEE) to set the initial 1% fee, and _beforeSwap returns TIER_S_FEE | LPFeeLibrary.OVERRIDE_FEE_FLAG (1 bps) for tier-S wallet-age holders. ✓
  • upgradeable: false — No proxy patterns, delegatecall, mutable implementation storage, or SELFDESTRUCT. ✓
  • requiresCustomSwapData: false_resolveBuyer falls back to tx.origin when hookData.length != 32. Swaps execute normally without hookData (no NFT queue to a custom address, but no revert). ✓
  • vanillaSwap: falsedynamicFee is true and the fee can be overridden per-swap. ✓
  • swapAccess: "governance"_beforeSwap gates on whitelistEnabled (a boolean set by admin via setWhitelistEnabled()). This is the governance pattern. ✓

Metadata

  • verifiedSource: true — Confirmed by source_meta.json. ✓
  • chainId: 1 — Matches ethereum in chains.json. ✓
  • name: "UnigenHook" — Matches contract name and NatSpec @title. No promotional or endorsement language. ✓
  • description — Accurately describes the afterSwap NFT queueing mechanism, the 1 bps fee override for tier-S holders, and the admin-controlled whitelist gate. All claims are substantiated by the Solidity logic. No audit claims, safety guarantees, or marketing language. ✓

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

Copy link
Copy Markdown
Contributor

@marktoda marktoda left a comment

Choose a reason for hiding this comment

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

Bot review verified. UnigenHook (ethereum) — dynamic-fee hook (swapAccess=governance) with afterInitialize + before/afterSwap. Bitmask 0x10c0 → afterInitialize, beforeSwap, afterSwap. Description 258 chars. LGTM.

@marktoda marktoda merged commit c2d4a8a into main Jun 3, 2026
7 checks passed
@marktoda marktoda deleted the hooks/ethereum/0x02861997ca5d65d40fa34facdaa9f969c95fd0c0 branch June 3, 2026 01:13
@oggyfoxy
Copy link
Copy Markdown

oggyfoxy commented Jun 3, 2026

hey mark sorry, we updated the hook and did a new request the new address is: 0x66213C92F0a000A0e0Dc21AD7Faeb4Cf528850c0

see #621

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: Unigen

2 participants