Add PlebIndexFeeHook hook on robinhood#1059
Merged
marktoda merged 1 commit intoJul 13, 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/robinhood/0xa507e8c472918338c6c15eb894c9703581b060cc.json
Address Flag Verification
Address 0xa507e8c472918338c6c15eb894c9703581b060cc, lowest 14 bits = 0x60cc & 0x3FFF = 0x20cc = 0b10_0000_1100_1100:
| Bit | Flag | Expected | File |
|---|---|---|---|
| 13 | beforeInitialize | true | true ✓ |
| 12 | afterInitialize | false | false ✓ |
| 11–8 | liquidity hooks | false | false ✓ |
| 7 | beforeSwap | true | true ✓ |
| 6 | afterSwap | true | true ✓ |
| 5–4 | donate | false | false ✓ |
| 3 | beforeSwapReturnsDelta | true | true ✓ |
| 2 | afterSwapReturnsDelta | true | true ✓ |
| 1–0 | liquidity deltas | false | false ✓ |
Also confirmed against getHookPermissions() in source — all 14 bits match.
Properties Verification
- dynamicFee: false ✓ —
_beforeSwapalways returns0as the fee override; no call toupdateDynamicLPFee(). - upgradeable: false ✓ —
taxBps,treasury, andplebTokenare allimmutable; no proxy pattern, nodelegatecall, noSELFDESTRUCT. - requiresCustomSwapData: false ✓ — The
bytes calldatahookData parameter is unused in both_beforeSwapand_afterSwap. - vanillaSwap: false ✓ — Correctly
false:beforeSwapReturnsDeltaandafterSwapReturnsDeltaare bothtrue, and the hook materially changes swap execution by diverting ETH fees to treasury via delta accounting. - swapAccess: "none" ✓ —
_beforeSwapcontains no access control. The only restriction is in_beforeInitialize(pool creation gating), which is orthogonal to swap access.
Metadata Verification
- chainId: 4663 ✓ — Matches
robinhoodinchains.json. - name: "PlebIndexFeeHook" ✓ — Exact match with both the contract name and the NatSpec
@title. - verifiedSource: true ✓ — Confirmed by
source_meta.json. - description ✓ — Accurately describes: immutable trade tax up to 4% (
MAX_TAX_BPS = 400), fee sent to treasury viaBeforeSwapDelta/AfterSwapDelta, restriction to native-ETH/PLEB pools viabeforeInitialize, no owner or upgrade mechanism. No promotional or endorsement language present. - deployer — Not verifiable from source alone; no issues found.
All fields are consistent with the on-chain verified source code.
marktoda
approved these changes
Jul 13, 2026
marktoda
left a comment
Contributor
There was a problem hiding this comment.
Bot review verified. PlebIndexFeeHook — index-fee hook on robinhood. Bitmask 0x20cc → beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. Desc length 255/500 OK. 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
Charges an immutable ETH trade tax (up to 4%) on PLEB/ETH pool swaps, diverting the fee directly to a fixed treasury address via BeforeSwapDelta and AfterSwapDelta. Restricts pool initialization to native-ETH/PLEB pairs; has no owner or upgrade mechanism.
Flags
Properties
Warnings
Closes #1058