Add MemeFolioTaxHook hook on robinhood#1098
Merged
Ponx merged 1 commit intoJul 16, 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/0x29a2a39143f5aafba61bb8c649bc7c7d50b1e0cc.json
Address Flags
Decoding the lower 14 bits of 0x...e0cc:
0xE0CC & 0x3FFF = 0x20CC → bits 13, 7, 6, 3, 2 are set.
| Flag | Bit | Address | JSON | Source |
|---|---|---|---|---|
| beforeInitialize | 13 | ✓ | true | permissions.beforeInitialize = true |
| afterInitialize | 12 | ✓ | false | not set |
| beforeAddLiquidity | 11 | ✓ | false | not set |
| afterAddLiquidity | 10 | ✓ | false | not set |
| beforeRemoveLiquidity | 9 | ✓ | false | not set |
| afterRemoveLiquidity | 8 | ✓ | false | not set |
| beforeSwap | 7 | ✓ | true | permissions.beforeSwap = true |
| afterSwap | 6 | ✓ | true | permissions.afterSwap = true |
| beforeDonate | 5 | ✓ | false | not set |
| afterDonate | 4 | ✓ | false | not set |
| beforeSwapReturnsDelta | 3 | ✓ | true | permissions.beforeSwapReturnDelta = true |
| afterSwapReturnsDelta | 2 | ✓ | true | permissions.afterSwapReturnDelta = true |
| afterAddLiquidityReturnsDelta | 1 | ✓ | false | not set |
| afterRemoveLiquidityReturnsDelta | 0 | ✓ | false | not set |
All flags match address bitmask and getHookPermissions().
Properties
- dynamicFee: false ✓ —
_beforeSwapreturns0as the fee override. The pool usesPOOL_LP_FEE = 0(static).poolManager.updateDynamicLPFee()is never called. - upgradeable: false ✓ — No proxy, no
delegatecall, no mutable implementation storage.source_meta.jsonconfirms"proxy": false. Buyback/treasury wallets areimmutable. - requiresCustomSwapData: false ✓ —
_beforeSwapand_afterSwapboth acceptbytes calldatabut never read it. Swaps work correctly with empty hookData. - vanillaSwap: false ✓ — Correct:
beforeSwapReturnsDeltaandafterSwapReturnsDeltaare true and the hook extracts a 3% tax that modifies effective swap amounts. - swapAccess: "none" ✓ —
_beforeSwaponly calls_validatePool(key)to verify pool identity (correct pool), but imposes no access control on the caller. Any address can swap.
Metadata
- verifiedSource: true ✓ — Confirmed by
source_meta.json. - chainId: 4663 ✓ — Matches
chains.jsonentry forrobinhood. - name: "MemeFolioTaxHook" ✓ — Matches
contractNameinsource_meta.jsonand the@titleNatSpec in source. - description ✓ — Accurate and factual:
- "3% native-ETH swap tax" —
TAX_BPS = 300, currency0 is address zero (native ETH) enforced by_validatePool. - "single ETH/token pool" —
_validatePoolrestricts to exactly one pool (native + specificprojectToken). - "beforeSwap (on buys) and afterSwap (on sells)" —
_beforeSwaphandles exact-input buy side when native ETH is the specified currency;_afterSwaphandles the sell side. - "stored as PoolManager claims" —
key.currency0.take(..., true)uses the claims accounting path. - "permissionlessly distributed 2:1" —
collectNativeTax()has no access control;BUYBACK_BPS = 200,TREASURY_BPS = 100(2:1 ratio). - "immutable buyback and treasury wallets" — both declared
immutable, no setters.
- "3% native-ETH swap tax" —
No promotional, audit, safety, or endorsement language present.
Verdict
All flags, properties, and metadata are correct and substantiated by the on-chain source code.
Ponx
approved these changes
Jul 16, 2026
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
Immutable 3% native-ETH swap tax hook for a single ETH/token pool. Tax is taken in beforeSwap (on buys) and afterSwap (on sells) via BeforeSwapDelta/AfterSwapDelta, stored as PoolManager claims, and permissionlessly distributed 2:1 to immutable buyback and treasury wallets.
Flags
Properties
Warnings
Closes #1095