Skip to content

Add SudoCatHook hook on robinhood - #4478

Merged
Ponx merged 1 commit into
mainfrom
hooks/robinhood/0xa35ebc56f0a1cb4762eabd788dad8606667da0cc
Sep 16, 2026
Merged

Ponx merged 1 commit into
mainfrom
hooks/robinhood/0xa35ebc56f0a1cb4762eabd788dad8606667da0cc

Conversation

@hooklist-generator

Copy link
Copy Markdown
Contributor

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

Flag Value
beforeInitialize true
afterInitialize false
beforeAddLiquidity false
afterAddLiquidity false
beforeRemoveLiquidity false
afterRemoveLiquidity false
beforeSwap true
afterSwap true
beforeDonate false
afterDonate false
beforeSwapReturnsDelta true
afterSwapReturnsDelta true
afterAddLiquidityReturnsDelta false
afterRemoveLiquidityReturnsDelta false

Properties

Property Value
dynamicFee true
upgradeable false
requiresCustomSwapData false
vanillaSwap false
swapAccess none

Warnings

  • Submitter-proposed description rejected: contains external website URL ("Website: https://thesudo.cat") — promotional content not verifiable from source. Using AI-generated description.

Closes #4477

@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hooklist Ready Ready Preview Sep 11, 2026 7:15pm UTC

Request Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ✓ — _beforeSwap returns LP_FEE_PIPS | LPFeeLibrary.OVERRIDE_FEE_FLAG (20_000 = 2%), and the pool is initialized with LPFeeLibrary.DYNAMIC_FEE_FLAG.
  • upgradeable=false ✓ — No proxy pattern, no delegatecall to mutable addresses, no SELFDESTRUCT. The VERIFIER_ADMIN role 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 ✓ — hookData is optional. _beforeSwap only enters the fee-exemption path when hookData.length != 0; otherwise swaps proceed normally with full fees. _afterSwap skips routing on the output side when hookData is provided but otherwise functions correctly.
  • vanillaSwap=false ✓ — Correct: beforeSwapReturnsDelta and afterSwapReturnsDelta are both true; the hook extracts 3% routing fees from swap inputs/outputs, materially changing swap execution.
  • swapAccess="none" ✓ — _beforeSwap contains no user access control. _requireOfficialPool is 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 via token.fundRewards(), sell-side fees permanently burned via token.protocolBurn(), six immutable fee-exempt wallets that bypass all fees (both routing and LP fee set to 0) when providing a valid EIP-712 signed hookData. No promotional, audit, or safety language present.

All flags, properties, and metadata are correct and consistent with the on-chain source code.

@Ponx
Ponx merged commit 31215d3 into main Sep 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

hook: SudoCatHook on Robinhood Chain

1 participant