Add PRAdaptiveHookv2 hook on robinhood - #1237
Open
hooklist-generator[bot] wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Review: hooks/robinhood/0xc3c15bde8bfb101bbdb36932b2222791f5f1c0cc.json
Address Flags ✓
Address ends in 0xc0cc → masked to 14 bits: 0x00cc = 1100 1100.
| Bit | Flag | Expected | Hook File |
|---|---|---|---|
| 7 | beforeSwap | true | true ✓ |
| 6 | afterSwap | true | true ✓ |
| 3 | beforeSwapReturnsDelta | true | true ✓ |
| 2 | afterSwapReturnsDelta | true | true ✓ |
| all others | — | false | false ✓ |
Confirmed by getHookPermissions() in source.
Properties ✓
- dynamicFee: false —
beforeSwapreturns0as the LP fee override (no dynamic fee), andpoolManager.updateDynamicLPFee()is never called. - upgradeable: false — No proxy patterns, no
delegatecall, no mutable implementation pointer. - requiresCustomSwapData: false — The
bytes calldatahookData parameter is ignored entirely in bothbeforeSwapandafterSwap. - vanillaSwap: false — Correct;
beforeSwapReturnsDeltaandafterSwapReturnsDeltaare both used to deduct fees from swap output, which changes how the swap executes. - swapAccess: "none" — Neither
beforeSwapnorafterSwapever reverts based on caller identity. Whenpausedis true or a pool is not allowlisted, the hook returnsZERO_DELTA(pass-through). The pool allowlist gates fee collection, not swap access; no caller-based blocking mechanism exists.
Metadata ✓
- chainId: 4663 — Matches
robinhoodinchains.json. - verifiedSource: true — Confirmed by
source_meta.json("verified": true). - name: "PRAdaptiveHookv2" — Matches
contractNameinsource_meta.jsonand the NatSpec@titlein source. - description — All claims substantiated by source:
ABSOLUTE_MAX_BPS = 500(0–5% max configurable fee), buy fees deducted in PR (output currency when trader receives PR), sell fees in ETH (output currency when selling PR), fees forwarded viapoolManager.take(outputCurrency, vault, fee)tobuybackVault, pool allowlist viaallowlistedPool[key.toId()]controlled byonlyOwner. No marketing, audit, or endorsement language present.
All fields are correct. APPROVE.
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
Collects a configurable fee (0-5% max) on swaps involving the PR token. Buy fees are paid in PR, sell fees in ETH. Fees are forwarded to a buyback vault address. Only operates on owner-allowlisted pools.
Flags
Properties
Warnings
None
Closes #1236