Skip to content

Add SpectraHook hook on base#618

Merged
marktoda merged 1 commit into
mainfrom
hooks/base/0x972fd516470c0e1841211c51c37ab2f7dfe44040
Jun 3, 2026
Merged

Add SpectraHook hook on base#618
marktoda merged 1 commit into
mainfrom
hooks/base/0x972fd516470c0e1841211c51c37ab2f7dfe44040

Conversation

@hooklist-generator
Copy link
Copy Markdown

Summary

Uniswap v4 afterSwap hook for SpectraLaunch tokens that auto-harvests the token's parked fee balance after every swap, sells the tokens for ETH via a nested swap inside the same unlock context, and credits the ETH proceeds pro-rata to token holders.

Flags

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

Properties

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

Warnings

  • Submitter-proposed name "— AAAA" rejected: does not match contract name or source. Using "SpectraHook".
  • Submitter-proposed description rejected: malformed/truncated (unclosed parenthesis, incomplete sentence). Using AI-generated description.

Closes #617

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

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

Project Deployment Actions Updated (UTC)
hooklist Ready Ready Preview, Comment Jun 2, 2026 11:11pm

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/0x972fd516470c0e1841211c51c37ab2f7dfe44040.json

Address Flags

Address 0x972fd516470c0e1841211c51c37ab2f7dfe44040: lower 14 bits = 0x4040 & 0x3FFF = 0x0040 = 64 = bit 6 only → afterSwap: true, all other flags false. ✓ Matches the hook file exactly.

Source confirms: getHookPermissions() sets only p.afterSwap = true.

Properties

Property Filed Verdict
dynamicFee false ✓ No beforeSwap, no updateDynamicLPFee() call
upgradeable false ✓ Fully immutable; source_meta.json confirms proxy: false
requiresCustomSwapData false _afterSwap ignores hookData entirely
vanillaSwap false ✓ Correctly false — _harvest() executes a nested poolManager.swap() inside afterSwap, which is a disqualifying condition
swapAccess "none" ✓ No beforeSwap; afterSwap has no access control gating

Metadata

  • name: "SpectraHook" — matches on-chain contract name and NatSpec @title. ✓
  • chainId: 8453 — matches base in chains.json. ✓
  • verifiedSource: true — confirmed by source_meta.json. ✓
  • description: Accurately describes the on-chain logic (auto-harvest parked fee balance → nested swap for ETH → creditPoolFees to holders). No marketing, audit, or endorsement language. ✓

All fields verified against on-chain source. 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. SpectraHook (base) — afterSwap hook on a Spectra launchpad pool. Bitmask 0x0040 → afterSwap. Description 249 chars. LGTM.

@marktoda marktoda merged commit c04332e into main Jun 3, 2026
7 checks passed
@marktoda marktoda deleted the hooks/base/0x972fd516470c0e1841211c51c37ab2f7dfe44040 branch June 3, 2026 01:13
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: aaa (AAAA) on Base

1 participant