Add SpectraHook hook on base#618
Merged
marktoda merged 1 commit intoJun 3, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
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— matchesbaseinchains.json. ✓ - verifiedSource:
true— confirmed bysource_meta.json. ✓ - description: Accurately describes the on-chain logic (auto-harvest parked fee balance → nested swap for ETH →
creditPoolFeesto holders). No marketing, audit, or endorsement language. ✓
All fields verified against on-chain source. No issues found.
marktoda
approved these changes
Jun 3, 2026
Contributor
marktoda
left a comment
There was a problem hiding this comment.
Bot review verified. SpectraHook (base) — afterSwap hook on a Spectra launchpad pool. Bitmask 0x0040 → afterSwap. Description 249 chars. LGTM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Properties
Warnings
Closes #617