Add SudoCatHook hook on robinhood - #4478
Merged
Ponx merged 1 commit intoSep 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/0xa35ebc56f0a1cb4762eabd788dad8606667da0cc.json
Address Flag Verification
Decoding the lowest 14 bits of 0xa35ebc56f0a1cb4762eabd788dad8606667da0cc:
- Last byte
0xcc=11001100₂(bits 0–7) - Second-to-last byte
0xa0=10100000₂(bits 8–15)
Flags derived: beforeInitialize=1, afterInitialize=0, beforeAddLiquidity=0, afterAddLiquidity=0, beforeRemoveLiquidity=0, afterRemoveLiquidity=0, beforeSwap=1, afterSwap=1, beforeDonate=0, afterDonate=0, beforeSwapReturnsDelta=1, afterSwapReturnsDelta=1, afterAddLiquidityReturnsDelta=0, afterRemoveLiquidityReturnsDelta=0.
All 14 flags match the flags section exactly, and are confirmed by getHookPermissions() in the source.
Properties Verification
- dynamicFee=true ✓ —
_beforeSwapreturnsLP_FEE_PIPS | LPFeeLibrary.OVERRIDE_FEE_FLAG(20_000 = 2%), and the pool is initialized withLPFeeLibrary.DYNAMIC_FEE_FLAG. - upgradeable=false ✓ — No proxy pattern, no delegatecall to mutable addresses, no SELFDESTRUCT. The
VERIFIER_ADMINrole can only rotate the game-result signing key after a 48-hour time-lock delay; it has no control over pool or fee logic. - requiresCustomSwapData=false ✓ —
hookDatais optional._beforeSwaponly enters the fee-exemption path whenhookData.length != 0; otherwise swaps proceed normally with full fees._afterSwapskips routing on the output side when hookData is provided but otherwise functions correctly. - vanillaSwap=false ✓ — Correct:
beforeSwapReturnsDeltaandafterSwapReturnsDeltaare both true; the hook extracts 3% routing fees from swap inputs/outputs, materially changing swap execution. - swapAccess="none" ✓ —
_beforeSwapcontains no user access control._requireOfficialPoolis pool-key validation (not user gating). Any address may swap freely.
Metadata Verification
- chainId=4663 ✓ — Matches chains.json for "robinhood".
- name="SudoCatHook" ✓ — Matches the verified contract name in source and
source_meta.json. - verifiedSource=true ✓ — Confirmed by
source_meta.json. - description ✓ — All technical claims are substantiated by the Solidity logic: 2% LP fee (
LP_FEE_PIPS=20_000), 3% routing fee (ROUTING_FEE_PPM=30_000), ETH buy-side fees fund holder rewards viatoken.fundRewards(), sell-side fees permanently burned viatoken.protocolBurn(), six immutable fee-exempt wallets that bypass all fees (both routing and LP fee set to 0) when providing a valid EIP-712 signedhookData. No promotional, audit, or safety language present.
All flags, properties, and metadata are correct and consistent with the on-chain source code.
Ponx
approved these changes
Sep 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
Single-pool hook for a native ETH / SudoCat token pair. Applies a 2% LP fee via dynamic fee override and takes a 3% routing fee per swap: ETH buy-side fees fund holder rewards claimable from the hook; token sell-side fees are permanently burned. Six immutable fee-exempt addresses can bypass all fees by providing EIP-712 signed hookData.
Flags
Properties
Warnings
Closes #4477