Add WickHook hook on robinhood - #1140
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Hook Review: hooks/robinhood/0x3d1bfb1e3634c9d278359143ee7bb0e12cf690c4.json
Address Flags
Address suffix 0x90c4 = 1001 0000 1100 0100 (binary). Lowest 14 bits map to:
| Flag | Bit | Expected | Actual |
|---|---|---|---|
| beforeInitialize | 13 | false | false ✓ |
| afterInitialize | 12 | true | true ✓ |
| beforeAddLiquidity | 11 | false | false ✓ |
| afterAddLiquidity | 10 | false | false ✓ |
| beforeRemoveLiquidity | 9 | false | false ✓ |
| afterRemoveLiquidity | 8 | false | false ✓ |
| beforeSwap | 7 | true | true ✓ |
| afterSwap | 6 | true | true ✓ |
| beforeDonate | 5 | false | false ✓ |
| afterDonate | 4 | false | false ✓ |
| beforeSwapReturnsDelta | 3 | false | false ✓ |
| afterSwapReturnsDelta | 2 | true | true ✓ |
| afterAddLiquidityReturnsDelta | 1 | false | false ✓ |
| afterRemoveLiquidityReturnsDelta | 0 | false | false ✓ |
All 14 flags are correct.
Properties
-
dynamicFee: true ✓ —
afterInitializecallspoolManager.updateDynamicLPFee(key, LP_FEE)(line 973), establishing dynamic fee control over the pool. -
upgradeable: false ✓ —
source_meta.jsonreportsproxy: false. No proxy patterns,delegatecall, mutable implementation pointer, orSELFDESTRUCTfound in source. -
requiresCustomSwapData: false ✓ — Neither
beforeSwapnorafterSwapreads or decodes thehookDatabytes parameter. Swaps function correctly with empty hookData. -
vanillaSwap: false ✓ — Correctly false:
afterSwapReturnsDeltais true, and the hook actively takes fees (4% total) and returns a non-zero delta fromafterSwap. -
swapAccess: "allowlist" ✓ —
beforeSwapchecksbuyAllowed[sender]mapping (an admin-controlled allowlist) whilelaunchGuardActiveis true. Sells are always open; buys require allowlist membership untilopenTrading()is called.
Fee Split Verification
Source constants: POT_BPS = 225 (2.25%), TEAM_BPS = 75 (0.75%), STAKING_BPS = 100 (1%), LP_FEE = 0. Total hook capture = 4%. Matches description exactly.
Metadata
- verifiedSource: true ✓ —
source_meta.jsonconfirms"verified": true. - chainId: 4663 ✓ — Matches
chains.jsonentry for"robinhood". - name: "WickHook" ✓ — Matches
contractNamefromsource_meta.jsonand the contract definition in source. - description ✓ — Accurately describes the 4% hook fee split (2.25% pot / 0.75% team / 1% staking), the 0% LP fee, and the launch guard allowlist mechanism. No promotional, audit, or endorsement language present.
Summary
All flags, properties, and metadata are correctly set and substantiated by the on-chain source code.
Summary
Single-pool hook with a 0% LP fee that captures a 4% hook fee on each swap (2.25% pot, 0.75% team, 1% staking distributor). Includes a launch guard that restricts buy-side swaps to allowlisted senders until disabled by the owner.
Flags
Properties
Warnings
Closes #1136