Add Unigen Hook hook on ethereum#621
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
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_FLAGandpoolManager.updateDynamicLPFee()is called in_afterInitialize._beforeSwapreturnsTIER_S_FEE | LPFeeLibrary.OVERRIDE_FEE_FLAGfor Tier-S wallets. -
upgradeable: false ✅ — No proxy pattern, no
delegatecall, no mutable implementation storage, not insource_meta.jsonproxy field ("proxy": false). -
requiresCustomSwapData: false ✅ —
_resolveBuyer()falls back totx.originwhenhookDatais absent or malformed. Swaps succeed without hookData; the only consequence is that NFT minting targetstx.origininstead of an explicitly encoded recipient. -
vanillaSwap: false ✅ — Correct;
dynamicFeeis true, which mandatesvanillaSwap: false. -
swapAccess: "governance" ✅ —
_beforeSwapreverts withNotWhitelisted()unlesstx.originis inwhitelist, controlled by thewhitelistEnabledboolean flag toggled byadminviasetWhitelistEnabled(). This is a governance-controlled boolean flag pattern.
Metadata
- chainId: 1 ✅ — Ethereum mainnet.
- verifiedSource: true ✅ —
source_meta.jsonconfirms"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 inbeforeSwap, and the governance-controlled whitelist launch gate. All claims are substantiated by the Solidity source.
All checks pass.
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
Properties
Warnings
Closes #620