Skip to content

Add LayerMeme Dynamic Fee Hook v2 (Base) hook on base#568

Merged
marktoda merged 1 commit into
mainfrom
hooks/base/0x440f4148e323de5d8196582628971bfff802e8cc
May 22, 2026
Merged

Add LayerMeme Dynamic Fee Hook v2 (Base) hook on base#568
marktoda merged 1 commit into
mainfrom
hooks/base/0x440f4148e323de5d8196582628971bfff802e8cc

Conversation

@hooklist-generator
Copy link
Copy Markdown

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

Flag Value
beforeInitialize true
afterInitialize false
beforeAddLiquidity true
afterAddLiquidity false
beforeRemoveLiquidity false
afterRemoveLiquidity false
beforeSwap true
afterSwap true
beforeDonate false
afterDonate false
beforeSwapReturnsDelta true
afterSwapReturnsDelta true
afterAddLiquidityReturnsDelta false
afterRemoveLiquidityReturnsDelta false

Properties

Property Value
dynamicFee true
upgradeable false
requiresCustomSwapData false
vanillaSwap false
swapAccess none

Warnings

None

Closes #535

@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hooklist Ready Ready Preview, Comment May 21, 2026 6:55pm

Request Review

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 calls IPoolManager.updateDynamicLPFee() on every swap.

  • upgradeable: false ✓ — No proxy pattern, no delegatecall, no mutable implementation pointer. source_meta.json confirms proxy: false.

  • requiresCustomSwapData: false ✓ — Both _runMevModule and _runPoolExtension explicitly handle empty swapData (falling back to empty PoolSwapData structs), so swaps with no hookData execute without failure.

  • vanillaSwap: false ✓ — beforeSwapReturnsDelta and afterSwapReturnsDelta are both true; the hook materially alters swap amounts by taking a protocol fee via toBeforeSwapDelta and returning unspecifiedDelta in afterSwap.

  • swapAccess: "none" ✓ — _beforeSwap has 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 name LayerMemeHookDynamicFeeV2. 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.

Copy link
Copy Markdown
Contributor

@marktoda marktoda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot review verified. LayerMeme Dynamic Fee Hook v2 on base (0x440f...e8cc). Bitmask 0x28cc → beforeInitialize, beforeAddLiquidity, beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. dynamicFee=true. LGTM.

@marktoda marktoda merged commit 26a975b into main May 22, 2026
7 checks passed
@marktoda marktoda deleted the hooks/base/0x440f4148e323de5d8196582628971bfff802e8cc branch May 22, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hook: LayerMeme Dynamic Fee Hook v2 (Base)

1 participant