Add GBPFv4Hook hook on base#659
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/base/0x5613c279e8db9815dbd0cdfbd10515eabd350088.json
Flags
Address last 2 bytes: 0x0088 = 0000 0000 1000 1000
| Bit | Flag | Address bit | File value | Match |
|---|---|---|---|---|
| 13 | beforeInitialize | 0 | false | ✓ |
| 12 | afterInitialize | 0 | false | ✓ |
| 11 | beforeAddLiquidity | 0 | false | ✓ |
| 10 | afterAddLiquidity | 0 | false | ✓ |
| 9 | beforeRemoveLiquidity | 0 | false | ✓ |
| 8 | afterRemoveLiquidity | 0 | false | ✓ |
| 7 | beforeSwap | 1 | true | ✓ |
| 6 | afterSwap | 0 | false | ✓ |
| 5 | beforeDonate | 0 | false | ✓ |
| 4 | afterDonate | 0 | false | ✓ |
| 3 | beforeSwapReturnsDelta | 1 | true | ✓ |
| 2 | afterSwapReturnsDelta | 0 | false | ✓ |
| 1 | afterAddLiquidityReturnsDelta | 0 | false | ✓ |
| 0 | afterRemoveLiquidityReturnsDelta | 0 | false | ✓ |
All flags match the address bitmask.
Properties
- dynamicFee: false ✓ —
beforeSwapreturns(selector, delta, 0)with fee override hardcoded to 0. NoupdateDynamicLPFee()call anywhere in the source. - upgradeable: false ✓ — NatSpec explicitly states "Immutable. No owner, no admin, no upgrade path."
source_meta.jsonconfirmsproxy: false. Nodelegatecall, proxy patterns, orSELFDESTRUCTpresent. - requiresCustomSwapData: false ✓ — The
hookDataparameter inbeforeSwapisbytes calldata /* hookData */— the name is commented out and it is never read. Swaps complete correctly without any custom hook data. - vanillaSwap: false ✓ —
beforeSwapReturnsDeltais true; the hook fully replaces V4 pool math with primary-market vault mint/redeem operations. Definitely non-vanilla. - swapAccess: "none" ✓ —
beforeSwaphas a standardmsg.sender == POOL_MANAGERcheck and aPOOL_KEY_HASHmatch. The oracle health check (if (!healthy) revert OraclePaused()) is a circuit breaker, not caller-based access control. No allowlist, no governance flag, no time gate.
Metadata
- verifiedSource: true ✓ — confirmed by
source_meta.json("verified": true). - chainId: 8453 ✓ — matches
baseentry inchains.json. - name: "GBPFv4Hook" ✓ — NatSpec
@titleis "GBPF V4 hook"; the hook is part of the GBPF project (GBPF token, GBPFv4Hook, GBPF imports). Project-qualified label substantiated by the verified source. No promotional, audit, or endorsement language. - description ✓ — Accurately matches the Solidity logic: intercepts USDS/GBPF swaps, replaces pool math with primary-market mint/redeem against the vault, prices via GBP/USD Chainlink TWAP (confirmed in
OracleAdapter), solvency-indexed spread curve (SpreadCurve), and flat 20 bp fee (FLAT_FEE_WAD = 2e15 = 0.0020). No marketing language or audit claims.
All checks pass.
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 Uniswap v4 hook that intercepts all swaps against a USDS/GBPF pool and fully replaces pool math with primary-market mint or redeem operations against a vault, pricing trades via a GBP/USD oracle TWAP, a solvency-indexed spread curve, and a flat 20 bp protocol fee.
Flags
Properties
Warnings
Closes #658