Add HHook hook on ethereum - #7124
Merged
Ponx merged 1 commit intoSep 17, 2026
Merged
Conversation
|
Deployment failed for project hooklist with the following error: Learn More: https://vercel.com/uniswap?upgradeToPro=build-rate-limit |
Contributor
There was a problem hiding this comment.
Review: hooks/ethereum/0x211d79ee98c5658989763bc367ded650a3a7d0cc.json
Address Flag Verification
Address ends in 0xd0cc. Lowest 14 bits: 0xd0cc & 0x3FFF = 0x10cc = 0001 0000 1100 1100.
| Bit | Flag | Expected | Filed |
|---|---|---|---|
| 13 | beforeInitialize | false | false ✓ |
| 12 | afterInitialize | true | true ✓ |
| 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 ✓ |
All 14 flag bits match. The source also confirms in a comment: HOOK FLAG MASK (lower 14 bits = 0x10CC).
Properties Verification
- dynamicFee: false ✓ —
beforeSwapalways returns fee=0; no call topoolManager.updateDynamicLPFee()anywhere in the source. - upgradeable: false ✓ — All key contract references (
poolManager,token,treasury,staking) areimmutable. No proxy pattern, nodelegatecallto mutable addresses, noSELFDESTRUCT.source_meta.jsonconfirmsproxy: false. - requiresCustomSwapData: false ✓ — Both
beforeSwapandafterSwapacceptbytes calldatabut never read from it. Swaps function correctly with empty hookData. - vanillaSwap: false ✓ — Correct;
beforeSwapReturnsDeltaandafterSwapReturnsDeltaare both true, and the hook actively modifies swap execution (floor price intercept and 5% tax delta). - swapAccess: "none" ✓ —
beforeSwapcontains no allowlist, governance flag, or time-based gate. Thesender == address(this)guard is an internal routing check (skipping the hook's own potential swaps), not user-facing access control.
Metadata Verification
- verifiedSource: true ✓ — Confirmed by
source_meta.json(verified: true). - chainId: 1 ✓ — Matches
chains.jsonentry forethereum. - name: "HHook" ✓ — Matches
contractNameinsource_meta.jsonandcontract HHook is IHooksin source. - description ✓ — All technical claims are substantiated by the Solidity logic:
- Reserve-backed floor price:
_rfvE18()computes treasury ETH / H supply;beforeSwapintercepts exact-input sells whenspotE18 < rfvE18. - Burns H and pays ETH at RFV:
token.burn(hIn)andtreasury.payoutToHook(ethOut). - 5% swap tax via
afterSwap:TAX_BPS = 500; H burned on buys (token.burn(taxed)), ETH forwarded to treasury on sells (treasury.notifyTax{value: taxed}()). - Epoch-based staking rebase triggered on each swap via
_maybeRebase(). - No promotional, audit, or endorsement language.
- Reserve-backed floor price:
All fields are correct.
Ponx
approved these changes
Sep 17, 2026
Ponx
left a comment
Collaborator
There was a problem hiding this comment.
Bot review verified; bitmask/flags/properties check out. LGTM.
Ponx
deleted the
hooks/ethereum/0x211d79ee98c5658989763bc367ded650a3a7d0cc
branch
September 17, 2026 00:56
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 implementing a reserve-backed floor price for the H token. On exact-input sells below RFV, beforeSwap intercepts the swap, burns the H, and pays ETH from the treasury at RFV. A 5% swap tax is applied via afterSwap (burning H on buys, routing ETH to treasury on sells). Also mints epoch-based staking rewards on each swap.
Flags
Properties
Warnings
Closes #7108