Add Flaunch PositionManager hook on ethereum#1122
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Review: hooks/ethereum/0x5cf8e499c7c466c7e2cf127bdf129f57151e65dc.json
Address Flags
Address suffix 0x65DC → lowest 14 bits = 0x25DC = 0010 0101 1101 1100.
| Bit | Flag | Address | Hook File |
|---|---|---|---|
| 13 | beforeInitialize | 1 | true ✓ |
| 12 | afterInitialize | 0 | false ✓ |
| 11 | beforeAddLiquidity | 0 | false ✓ |
| 10 | afterAddLiquidity | 1 | true ✓ |
| 9 | beforeRemoveLiquidity | 0 | false ✓ |
| 8 | afterRemoveLiquidity | 1 | true ✓ |
| 7 | beforeSwap | 1 | true ✓ |
| 6 | afterSwap | 1 | true ✓ |
| 5 | beforeDonate | 0 | false ✓ |
| 4 | afterDonate | 1 | true ✓ |
| 3 | beforeSwapReturnsDelta | 1 | true ✓ |
| 2 | afterSwapReturnsDelta | 1 | true ✓ |
| 1 | afterAddLiquidityReturnsDelta | 0 | false ✓ |
| 0 | afterRemoveLiquidityReturnsDelta | 0 | false ✓ |
All 14 flags match. Confirmed independently by getHookPermissions() in src_contracts_PositionManager.sol.
Properties
-
dynamicFee: false ✓ — The pool is initialized with
fee: 0(static)._beforeSwapreturns0for theuint24fee slot. NoupdateDynamicLPFeeorOVERRIDE_FEE_FLAGusage found in the hook contract. -
upgradeable: false ✓ — No
delegatecall, proxy pattern, orselfdestructfound in the PositionManager.source_meta.jsonconfirmsproxy: false. Owner-settable references (initialPrice,flaunchContract) are configurability, not upgradeability. -
requiresCustomSwapData: false ✓ —
hookDatain_beforeSwap/_afterSwapis only used for the optional referrer-fee feature (_distributeReferrerFees). A swap with emptyhookDataexecutes normally; no revert path requires it. -
vanillaSwap: false ✓ — Correctly false:
beforeSwapReturnsDeltaandafterSwapReturnsDeltaare both true; additionally the hook executes an internal swap (InternalSwapPool) inbeforeSwapand captures fees inafterSwap, materially altering swap execution. -
swapAccess: "temporal" ✓ —
_beforeSwapchecksflaunchesAt[poolId]againstblock.timestampand reverts withTokenNotFlaunchedif the current time is before the scheduled launch. This is a classic temporal gate.
Metadata
- verifiedSource: true ✓ — Confirmed by
source_meta.json("verified": true). - chainId: 1 ✓ — Matches Ethereum in
chains.json. - name: "Flaunch PositionManager" ✓ —
contractNameisPositionManager; project name "Flaunch" is substantiated throughout the source (package paths, contract comments, event names). No promotional/audit/endorsement language. - description ✓ — Accurately describes memecoin pool creation, the internal swap pool filling fee inventory against incoming swaps, fee distribution to creators/protocol/BidWall/referrers, TWAP oracle recording, and time-gated launch scheduling — all directly verifiable in the Solidity logic.
All fields are correct. Approving.
marktoda
left a comment
There was a problem hiding this comment.
Bot review verified. Flaunch PositionManager (ethereum). Full lifecycle hook: beforeInitialize, afterAdd/RemoveLiquidity, before/afterSwap (+returnsDelta), afterDonate. LGTM.
Summary
Uniswap v4 hook for the Flaunch token-launch platform that manages memecoin pool creation, an internal swap pool that fills fee inventory against incoming swaps, fee distribution to creators/protocol/BidWall/referrers, and TWAP oracle recording. Swaps on newly scheduled pools are time-gated until the configured launch timestamp.
Flags
Properties
Warnings
Closes #1112