Skip to content

Add RobFeeHook hook on robinhood#1074

Merged
Ponx merged 1 commit into
mainfrom
hooks/robinhood/0x5f794cf7faba3c8526079292726f29e5a88f40cc
Jul 16, 2026
Merged

Add RobFeeHook hook on robinhood#1074
Ponx merged 1 commit into
mainfrom
hooks/robinhood/0x5f794cf7faba3c8526079292726f29e5a88f40cc

Conversation

@hooklist-generator

Copy link
Copy Markdown
Contributor

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

Flag Value
beforeInitialize false
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 did not provide a name. Using AI-derived "RobFeeHook".

Closes #1073

@vercel

vercel Bot commented Jul 15, 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 15, 2026 3:30pm

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/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 = 200 is a constant. beforeSwap returns a hardcoded 0 for the fee override (no lpFeeOverride). No call to poolManager.updateDynamicLPFee().
  • upgradeable: false ✓ — No proxy patterns, no delegatecall, no SELFDESTRUCT. poolManager and all four recipients are immutable. Uses Ownable2Step only for share distribution control.
  • requiresCustomSwapData: false ✓ — Neither beforeSwap nor afterSwap reads hookData (parameter is unnamed). Swaps work correctly with empty hookData.
  • vanillaSwap: false ✓ — Correctly false because beforeSwapReturnsDelta and afterSwapReturnsDelta are both true; the hook diverts ETH from swaps to recipients via return deltas.
  • swapAccess: "none" ✓ — beforeSwap only enforces onlyPoolManager (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.json entry for robinhood.
  • 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 in beforeSwap/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
Ponx merged commit 9095f77 into main Jul 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.

RobFeeHook

1 participant