Skip to content

Add LayerMeme Static Fee Hook v2 (Base) hook on base#567

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

Add LayerMeme Static Fee Hook v2 (Base) hook on base#567
marktoda merged 1 commit into
mainfrom
hooks/base/0x5fef75737d2c547c9ea11e750b207239954368cc

Conversation

@hooklist-generator
Copy link
Copy Markdown

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

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 #536

@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:54pm

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/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() calls IPoolManager(poolManager).updateDynamicLPFee(poolKey, fee) on every swap.

  • upgradeable: false ✓ — source_meta.json reports proxy: false. No proxy patterns, delegatecall, or mutable implementation storage in source.

  • requiresCustomSwapData: false ✓ — Both _runMevModule and _runPoolExtension gracefully handle empty hookData by defaulting to PoolSwapData with empty byte arrays. No revert path for missing swap data.

  • vanillaSwap: false ✓ — The hook uses beforeSwapReturnsDelta and afterSwapReturnsDelta to take protocol fees on every swap, materially changing swap execution.

  • swapAccess: "none" ✓ — _beforeSwap has no access control gating who can swap. MEV module can raise fees but cannot block swaps.


Metadata

  • verifiedSource: true ✓ — source_meta.json confirms verified: true.
  • chainId: 8453 ✓ — Matches base in chains.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.

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 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.

@marktoda marktoda merged commit 5fadcb9 into main May 22, 2026
7 checks passed
@marktoda marktoda deleted the hooks/base/0x5fef75737d2c547c9ea11e750b207239954368cc branch May 22, 2026 16:40
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 Static Fee Hook v2 (Base)

1 participant