Skip to content

Add BackedFeeHook hook on robinhood#1117

Open
hooklist-generator[bot] wants to merge 1 commit into
mainfrom
hooks/robinhood/0xced7aa50727f3cd251985b09a2080db056a8c0cc
Open

Add BackedFeeHook hook on robinhood#1117
hooklist-generator[bot] wants to merge 1 commit into
mainfrom
hooks/robinhood/0xced7aa50727f3cd251985b09a2080db056a8c0cc

Conversation

@hooklist-generator

Copy link
Copy Markdown
Contributor

Summary

A fee-taking hook that charges a fixed 3% swap tax in native ETH (currency0) on all swaps, routing the full fee to a vault address. Fee collection is split between beforeSwap (ETH-specified swaps) and afterSwap (ETH-unspecified swaps) using return deltas; non-ETH pools pass through untaxed.

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 description. Using AI-generated description.

Closes #1109

@vercel

vercel Bot commented Jul 20, 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 20, 2026 2:41pm

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/0xced7aa50727f3cd251985b09a2080db056a8c0cc.json

Address Flags

Address suffix 0xc0cc, lowest 14 bits: 0x00cc = 11001100 binary.

Bit Flag Decoded JSON
7 beforeSwap 1 true
6 afterSwap 1 true
5 beforeDonate 0 false
4 afterDonate 0 false
3 beforeSwapReturnsDelta 1 true
2 afterSwapReturnsDelta 1 true
1 afterAddLiquidityReturnsDelta 0 false
0 afterRemoveLiquidityReturnsDelta 0 false

All 14 flag bits match the address bitmask.

Source Code Verification

Contract: BackedFeeHook — verified on Robinhood chain (chainId 4663). Matches source_meta.json.

dynamicFee: false — Fixed FEE_BPS = 300 (3%). No lpFeeOverride returned from beforeSwap, no call to poolManager.updateDynamicLPFee(). ✓

upgradeable: falsevault is immutable, no proxy pattern, no delegatecall, no SELFDESTRUCT. ✓

requiresCustomSwapData: falsehookData parameter is accepted but entirely unused in both _beforeSwap and _afterSwap. Swaps work correctly with empty hookData. ✓

vanillaSwap: false — Both beforeSwapReturnsDelta and afterSwapReturnsDelta are true and the hook actively takes fees (calls poolManager.take), modifying swap behavior. Correctly set to false. ✓

swapAccess: "none" — No access control on swappers. The hooks execute unconditionally for any caller on ETH pools; non-ETH pools pass through untaxed as a guard. ✓

Metadata

  • name: "BackedFeeHook" — matches contractName from verified source. No promotional language. ✓
  • chainId: 4663 — matches robinhood in chains.json. ✓
  • verifiedSource: true — confirmed by source_meta.json. ✓
  • description — accurately describes the fixed 3% ETH fee, vault routing, beforeSwap/afterSwap split logic, and non-ETH pool passthrough. All claims substantiated by source code. ✓

All fields are correct.

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: BackedFeeHook on Robinhood Chain

0 participants