Skip to content

Add PlebIndexFeeHook hook on robinhood#1059

Merged
marktoda merged 1 commit into
mainfrom
hooks/robinhood/0xa507e8c472918338c6c15eb894c9703581b060cc
Jul 13, 2026
Merged

Add PlebIndexFeeHook hook on robinhood#1059
marktoda merged 1 commit into
mainfrom
hooks/robinhood/0xa507e8c472918338c6c15eb894c9703581b060cc

Conversation

@hooklist-generator

Copy link
Copy Markdown
Contributor

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

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 false
upgradeable false
requiresCustomSwapData false
vanillaSwap false
swapAccess none

Warnings

  • Submitter-proposed description rejected: contains unverifiable claim about treasury behavior ("buys a basket of Robinhood Chain memecoins") not derivable from the hook source, and includes external URLs. Using AI-generated description.

Closes #1058

@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
hooklist Ready Ready Preview, Comment Jul 12, 2026 3:23am

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/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 ✓ — _beforeSwap always returns 0 as the fee override; no call to updateDynamicLPFee().
  • upgradeable: false ✓ — taxBps, treasury, and plebToken are all immutable; no proxy pattern, no delegatecall, no SELFDESTRUCT.
  • requiresCustomSwapData: false ✓ — The bytes calldata hookData parameter is unused in both _beforeSwap and _afterSwap.
  • vanillaSwap: false ✓ — Correctly false: beforeSwapReturnsDelta and afterSwapReturnsDelta are both true, and the hook materially changes swap execution by diverting ETH fees to treasury via delta accounting.
  • swapAccess: "none" ✓ — _beforeSwap contains no access control. The only restriction is in _beforeInitialize (pool creation gating), which is orthogonal to swap access.

Metadata Verification

  • chainId: 4663 ✓ — Matches robinhood in chains.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 via BeforeSwapDelta/AfterSwapDelta, restriction to native-ETH/PLEB pools via beforeInitialize, 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 marktoda 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.

Bot review verified. PlebIndexFeeHook — index-fee hook on robinhood. Bitmask 0x20cc → beforeInitialize, beforeSwap, afterSwap, beforeSwapReturnsDelta, afterSwapReturnsDelta. Desc length 255/500 OK. LGTM.

@marktoda marktoda merged commit a47f30c into main Jul 13, 2026
7 checks passed
@marktoda marktoda deleted the hooks/robinhood/0xa507e8c472918338c6c15eb894c9703581b060cc branch July 13, 2026 18:13
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: PlebIndexFeeHook on robinhood

1 participant