Add LayerMeme Static Fee Hook v2 (Base) hook on base#567
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Review: hooks/base/0x5fef75737d2c547c9ea11e750b207239954368cc.json
Contract: LayerMemeHookStaticFeeV2 (verified on BaseScan)
Address Flags
Address last 2 bytes: 0x68cc = 0110 1000 1100 1100
| Bit | Flag | Expected | File |
|---|---|---|---|
| 13 | beforeInitialize | true | true ✓ |
| 12 | afterInitialize | false | false ✓ |
| 11 | beforeAddLiquidity | true | true ✓ |
| 10 | afterAddLiquidity | false | false ✓ |
| 9 | beforeRemoveLiquidity | false | false ✓ |
| 8 | afterRemoveLiquidity | false | false ✓ |
| 7 | beforeSwap | true | true ✓ |
| 6 | afterSwap | true | true ✓ |
| 5 | beforeDonate | false | false ✓ |
| 4 | afterDonate | false | false ✓ |
| 3 | beforeSwapReturnsDelta | true | true ✓ |
| 2 | afterSwapReturnsDelta | true | true ✓ |
| 1 | afterAddLiquidityReturnsDelta | false | false ✓ |
| 0 | afterRemoveLiquidityReturnsDelta | false | false ✓ |
All 14 bits match getHookPermissions() in LayerMemeHookV2.sol.
Properties
-
dynamicFee: true ✓ —
_setFee()callsIPoolManager(poolManager).updateDynamicLPFee(poolKey, fee)on every swap. -
upgradeable: false ✓ —
source_meta.jsonreportsproxy: false. No proxy patterns,delegatecall, or mutable implementation storage in source. -
requiresCustomSwapData: false ✓ — Both
_runMevModuleand_runPoolExtensiongracefully handle emptyhookDataby defaulting toPoolSwapDatawith empty byte arrays. No revert path for missing swap data. -
vanillaSwap: false ✓ — The hook uses
beforeSwapReturnsDeltaandafterSwapReturnsDeltato take protocol fees on every swap, materially changing swap execution. -
swapAccess: "none" ✓ —
_beforeSwaphas no access control gating who can swap. MEV module can raise fees but cannot block swaps.
Metadata
- verifiedSource: true ✓ —
source_meta.jsonconfirmsverified: true. - chainId: 8453 ✓ — Matches
baseinchains.json. - name ✓ — "LayerMeme Static Fee Hook v2 (Base)" is a reasonable qualified label derived from the contract name
LayerMemeHookStaticFeeV2. No promotional, audit, or endorsement language. - description ✓ — Accurately describes the fixed LP fee enforcement, protocol fee collection on swaps, optional MEV protection, and per-pool extensions. All claims are substantiated by the Solidity logic.
All flags, properties, and metadata are correct. Approving.
marktoda
left a comment
There was a problem hiding this comment.
Bot review verified. LayerMeme Static Fee Hook v2 on base (0x5fef...68cc). Bitmask 0x38cc → beforeInitialize, beforeAddLiquidity, beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. Props consistent (dynamicFee=true despite 'static fee' naming — fee dynamism comes from flag 0x4000, which is set). LGTM.
Summary
A Uniswap v4 hook used by the LAYERMEME token launch platform. It enforces fixed LP fees per launched token pool, collects a protocol fee on launched token swaps, and supports optional MEV protection modules and per-pool extensions via custom swap data. The source is verified on BaseScan and the hook is deployed on Base mainnet.
Flags
Properties
Warnings
None
Closes #536