Add UniversalKlikHook hook on robinhood#1118
Merged
marktoda merged 1 commit intoJul 21, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
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 vialpFeeOverride. ETH fees are collected directly viapoolManager.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.jsonconfirmsproxy: false. - requiresCustomSwapData: false ✓ — The
hookDataparameter in both_beforeSwapand_afterSwapis accepted but never read or decoded. Swaps with empty hookData work normally. - vanillaSwap: false ✓ — Correctly false: both
beforeSwapReturnsDeltaandafterSwapReturnsDeltaare 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. Therequire(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.jsonrobinhoodentry. - 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 bypoolDeploymentBlock[poolId] == block.numbercheck; split betweenplatformTreasuryand 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
approved these changes
Jul 21, 2026
marktoda
left a comment
Contributor
There was a problem hiding this comment.
Bot review verified. UniversalKlikHook (robinhood). Flags: beforeInitialize, before/afterSwap (+returnsDelta). LGTM.
marktoda
deleted the
hooks/robinhood/0x745d717620052a97a22deee2e5eba59583f3e0cc
branch
July 21, 2026 16:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Properties
Warnings
Closes #1110