Add UnigenHook hook on ethereum#603
Merged
marktoda merged 1 commit intoJun 3, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
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 —
_afterInitializecallspoolManager.updateDynamicLPFee(key, DEFAULT_LP_FEE)to set the initial 1% fee, and_beforeSwapreturnsTIER_S_FEE | LPFeeLibrary.OVERRIDE_FEE_FLAG(1 bps) for tier-S wallet-age holders. ✓ - upgradeable: false — No proxy patterns,
delegatecall, mutable implementation storage, orSELFDESTRUCT. ✓ - requiresCustomSwapData: false —
_resolveBuyerfalls back totx.originwhenhookData.length != 32. Swaps execute normally without hookData (no NFT queue to a custom address, but no revert). ✓ - vanillaSwap: false —
dynamicFeeis true and the fee can be overridden per-swap. ✓ - swapAccess: "governance" —
_beforeSwapgates onwhitelistEnabled(a boolean set byadminviasetWhitelistEnabled()). 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.
marktoda
approved these changes
Jun 3, 2026
Contributor
marktoda
left a comment
There was a problem hiding this comment.
Bot review verified. UnigenHook (ethereum) — dynamic-fee hook (swapAccess=governance) with afterInitialize + before/afterSwap. Bitmask 0x10c0 → afterInitialize, beforeSwap, afterSwap. Description 258 chars. LGTM.
|
hey mark sorry, we updated the hook and did a new request the new address is: 0x66213C92F0a000A0e0Dc21AD7Faeb4Cf528850c0 see #621 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Properties
Warnings
Closes #602