Add RobFeeHook hook on robinhood#1074
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/0x5f794cf7faba3c8526079292726f29e5a88f40cc.json
Address Flags
Address ends in 0x40cc. Lowest 14 bits: 0x00cc = 0b00000011001100.
| Bit | Flag | Address | File | Source |
|---|---|---|---|---|
| 7 | beforeSwap | 1 | true |
true ✓ |
| 6 | afterSwap | 1 | true |
true ✓ |
| 3 | beforeSwapReturnsDelta | 1 | true |
true ✓ |
| 2 | afterSwapReturnsDelta | 1 | true |
true ✓ |
| all others | — | 0 | false |
false ✓ |
Matches getHookPermissions() in the source.
Properties
- dynamicFee: false ✓ —
FEE_BPS = 200is a constant.beforeSwapreturns a hardcoded0for the fee override (nolpFeeOverride). No call topoolManager.updateDynamicLPFee(). - upgradeable: false ✓ — No proxy patterns, no
delegatecall, noSELFDESTRUCT.poolManagerand all four recipients areimmutable. UsesOwnable2Steponly for share distribution control. - requiresCustomSwapData: false ✓ — Neither
beforeSwapnorafterSwapreadshookData(parameter is unnamed). Swaps work correctly with empty hookData. - vanillaSwap: false ✓ — Correctly
falsebecausebeforeSwapReturnsDeltaandafterSwapReturnsDeltaare bothtrue; the hook diverts ETH from swaps to recipients via return deltas. - swapAccess: "none" ✓ —
beforeSwaponly enforcesonlyPoolManager(pool manager call validation), with no allowlist, governance flag, or temporal gating on who may swap.
Metadata
- verifiedSource: true ✓ — Confirmed by
source_meta.json("verified": true). - chainId: 4663 ✓ — Matches
chains.jsonentry forrobinhood. - name: "RobFeeHook" ✓ — Matches both the contract name and NatSpec
@title RobFeeHook. - description ✓ — Every claim is substantiated: 2% fee (
FEE_BPS = 200), native-ETH side (key.currency0.isAddressZero()check), both swap directions (separate handling inbeforeSwap/afterSwap), four immutable recipients (recipient0..3), constant fee rate, owner-adjustable shares (setShares), no liquidity restriction flags. No promotional, audit, or safety language present.
All checks pass.
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
Fixed 2% swap fee on the native-ETH side of the pool, both directions, distributed instantly to four fixed recipients. Fee rate is a constant; only the distribution split is owner-adjustable. Non-upgradeable, no pool-creation or liquidity restrictions
Flags
Properties
Warnings
Closes #1073