Skip to content

Add Unigen Hook hook on ethereum#621

Open
hooklist-generator[bot] wants to merge 1 commit into
mainfrom
hooks/ethereum/0x66213c92f0a000a0e0dc21ad7faeb4cf528850c0
Open

Add Unigen Hook hook on ethereum#621
hooklist-generator[bot] wants to merge 1 commit into
mainfrom
hooks/ethereum/0x66213c92f0a000a0e0dc21ad7faeb4cf528850c0

Conversation

@hooklist-generator
Copy link
Copy Markdown

Summary

A Uniswap v4 hook for an ETH/UGEN pool that queues NFT mints for qualifying buyers via commit-reveal entropy in afterSwap. Applies a dynamic LP fee override (1 bps) for Tier-S wallet-age holders in beforeSwap, and includes a governance-controlled whitelist gate for the launch window.

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 budget and contains unverifiable promotional claims (NFT battles, season rewards, genesis branding) not substantiated by the Solidity source. Using AI-generated description.

Closes #620

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

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

Project Deployment Actions Updated (UTC)
hooklist Ready Ready Preview, Comment Jun 3, 2026 8:53am

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/0x66213c92f0a000a0e0dc21ad7faeb4cf528850c0.json

Contract: UnigenHook (source verified on Etherscan)

Flags

Address 0x...50c0: lowest 14 bits = 0x10C0 (01 0000 1100 0000).

Bit Flag Address File
12 afterInitialize ✅ true true
7 beforeSwap ✅ true true
6 afterSwap ✅ true true
all others false false

All 14 flags match the bitmask and getHookPermissions().

Properties

  • dynamicFee: true ✅ — Pool is initialized with LPFeeLibrary.DYNAMIC_FEE_FLAG and poolManager.updateDynamicLPFee() is called in _afterInitialize. _beforeSwap returns TIER_S_FEE | LPFeeLibrary.OVERRIDE_FEE_FLAG for Tier-S wallets.

  • upgradeable: false ✅ — No proxy pattern, no delegatecall, no mutable implementation storage, not in source_meta.json proxy field ("proxy": false).

  • requiresCustomSwapData: false ✅ — _resolveBuyer() falls back to tx.origin when hookData is absent or malformed. Swaps succeed without hookData; the only consequence is that NFT minting targets tx.origin instead of an explicitly encoded recipient.

  • vanillaSwap: false ✅ — Correct; dynamicFee is true, which mandates vanillaSwap: false.

  • swapAccess: "governance" ✅ — _beforeSwap reverts with NotWhitelisted() unless tx.origin is in whitelist, controlled by the whitelistEnabled boolean flag toggled by admin via setWhitelistEnabled(). This is a governance-controlled boolean flag pattern.

Metadata

  • chainId: 1 ✅ — Ethereum mainnet.
  • verifiedSource: true ✅ — source_meta.json confirms "verified": true.
  • name: "Unigen Hook" ✅ — Matches contract name UnigenHook; no promotional/endorsement language.
  • description ✅ — Accurately describes the commit-reveal NFT mint queue in afterSwap, the 1 bps dynamic fee override for Tier-S wallets in beforeSwap, and the governance-controlled whitelist launch gate. All claims are substantiated by the Solidity source.

All checks pass.

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

0 participants