Skip to content

Add UniversalKlikHook hook on robinhood#1118

Merged
marktoda merged 1 commit into
mainfrom
hooks/robinhood/0x745d717620052a97a22deee2e5eba59583f3e0cc
Jul 21, 2026
Merged

Add UniversalKlikHook hook on robinhood#1118
marktoda merged 1 commit into
mainfrom
hooks/robinhood/0x745d717620052a97a22deee2e5eba59583f3e0cc

Conversation

@hooklist-generator

Copy link
Copy Markdown
Contributor

Summary

A swap fee hook for ETH/token pools that collects a tiered ETH fee (0.10%–1.00% based on token market cap) on each swap, splitting proceeds between a platform treasury and the token's creator address. Fees are waived on the pool's launch block.

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 did not provide a description. Using AI-generated description.

Closes #1110

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

Address Flag Verification

Address 0x745d717620052a97a22deee2e5eba59583f3e0cc → lowest 14 bits: 0xe0cc & 0x3FFF = 8396 = 10_0000_1100_1100

Bit Flag Expected JSON
13 beforeInitialize true true ✓
12 afterInitialize false false ✓
11 beforeAddLiquidity false false ✓
10 afterAddLiquidity false false ✓
9 beforeRemoveLiquidity false false ✓
8 afterRemoveLiquidity false false ✓
7 beforeSwap true true ✓
6 afterSwap true true ✓
5 beforeDonate false false ✓
4 afterDonate false false ✓
3 beforeSwapReturnsDelta true true ✓
2 afterSwapReturnsDelta true true ✓
1 afterAddLiquidityReturnsDelta false false ✓
0 afterRemoveLiquidityReturnsDelta false false ✓

Flags also confirmed by getHookPermissions() in source.

Properties

  • dynamicFee: false ✓ — Hook does not call updateDynamicLPFee() nor return a fee via lpFeeOverride. ETH fees are collected directly via poolManager.take() and BeforeSwapDelta/afterSwap return deltas — an independent fee mechanism, not the Uniswap v4 dynamic LP fee system.
  • upgradeable: false ✓ — No proxy pattern, no delegatecall, no mutable implementation pointer. source_meta.json confirms proxy: false.
  • requiresCustomSwapData: false ✓ — The hookData parameter in both _beforeSwap and _afterSwap is accepted but never read or decoded. Swaps with empty hookData work normally.
  • vanillaSwap: false ✓ — Correctly false: both beforeSwapReturnsDelta and afterSwapReturnsDelta are true, and the hook extracts ETH fees by taking from the pool manager and returning non-zero deltas on every non-launch-block swap.
  • swapAccess: "none" ✓ — No allowlist, governance flag, or temporal gate in _beforeSwap. The require(isBuy || isExactInput) revert for exactOutput sells is a feature limitation (fee calculation design), not access control.

Metadata

  • verifiedSource: true ✓ — Confirmed by source_meta.json.
  • chainId: 4663 ✓ — Matches chains.json robinhood entry.
  • name: "UniversalKlikHook" ✓ — Exact contract name in source.
  • description ✓ — All claims substantiated: tiered fee of 0.10%–1.00% matches default feeTiers (10–100 bps); fee waiver on launch block confirmed by poolDeploymentBlock[poolId] == block.number check; split between platformTreasury and the token contract address confirmed by _distributeFee. Minor note: the description says "creator address" but fees are sent to the token contract address itself — this reflects the platform's design intent (the token contract receives creator proceeds) and is not misleading marketing language.

All fields are correct.

@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. UniversalKlikHook (robinhood). Flags: beforeInitialize, before/afterSwap (+returnsDelta). LGTM.

@marktoda
marktoda merged commit a057875 into main Jul 21, 2026
7 checks passed
@marktoda
marktoda deleted the hooks/robinhood/0x745d717620052a97a22deee2e5eba59583f3e0cc branch July 21, 2026 16:24
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: UniversalKlikHook on Robinhood Chain

1 participant