Add LayerMeme Dynamic Fee Hook v2 (Base) hook on base#568
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Review: hooks/base/0x440f4148e323de5d8196582628971bfff802e8cc.json
Address Flags
Decoded 0xe8cc & 0x3FFF = 0x28cc (binary: 10 1000 1100 1100). All 14 flag bits match the hook file exactly, and are confirmed by getHookPermissions() in LayerMemeHookV2.sol.
Properties
-
dynamicFee: true ✓ —
LayerMemeHookDynamicFeeV2._setFee()computes a volatility-based LP fee and callsIPoolManager.updateDynamicLPFee()on every swap. -
upgradeable: false ✓ — No proxy pattern, no
delegatecall, no mutable implementation pointer.source_meta.jsonconfirmsproxy: false. -
requiresCustomSwapData: false ✓ — Both
_runMevModuleand_runPoolExtensionexplicitly handle emptyswapData(falling back to emptyPoolSwapDatastructs), so swaps with no hookData execute without failure. -
vanillaSwap: false ✓ —
beforeSwapReturnsDeltaandafterSwapReturnsDeltaare both true; the hook materially alters swap amounts by taking a protocol fee viatoBeforeSwapDeltaand returningunspecifiedDeltainafterSwap. -
swapAccess: "none" ✓ —
_beforeSwaphas no caller checks, no allowlist, no governance gate, and no temporal restriction. Swaps are open to all.
Metadata
- verifiedSource: true ✓ — Confirmed by
source_meta.json. - chainId: 8453 ✓ — Matches Base mainnet and the
hooks/base/directory. - name ✓ —
"LayerMeme Dynamic Fee Hook v2 (Base)"is a reasonable human-readable form of the on-chain contract nameLayerMemeHookDynamicFeeV2. No promotional, audit, or endorsement language. - description ✓ — All claims are substantiated by the source: volatility-based dynamic fees (
_setFee/_getVolatilityAccumulator), protocol fee collection (_hookFeeClaim,poolManager.mint), optional MEV modules (_runMevModule), and per-pool extensions (_runPoolExtension). No marketing or safety guarantees present.
All fields verified. No issues found.
marktoda
left a comment
There was a problem hiding this comment.
Bot review verified. LayerMeme Dynamic Fee Hook v2 on base (0x440f...e8cc). Bitmask 0x28cc → beforeInitialize, beforeAddLiquidity, beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. dynamicFee=true. LGTM.
Summary
A Uniswap v4 hook used by the LAYERMEME token launch platform. It dynamically adjusts LP fees based on volatility, 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 #535