Add UniChainHook hook on ethereum - #7149
Merged
Ponx merged 1 commit intoSep 16, 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/ethereum/0x4fef97b09b6e2be7ee62331ef47f5fc1bef1a0c4.json
Contract: UniChainHook — verified source on Ethereum mainnet (chainId 1).
Address Flags
Lowest 14 bits of 0x...a0c4: 0xa0c4 & 0x3FFF = 0x20C4 (8388 decimal) = 10 0000 1100 0100 in binary.
| Bit | Flag | Bitmask | File | Source (getHookPermissions) |
|---|---|---|---|---|
| 13 | beforeInitialize | 1 | true | true ✓ |
| 12 | afterInitialize | 0 | false | false ✓ |
| 11 | beforeAddLiquidity | 0 | false | false ✓ |
| 10 | afterAddLiquidity | 0 | false | false ✓ |
| 9 | beforeRemoveLiquidity | 0 | false | false ✓ |
| 8 | afterRemoveLiquidity | 0 | false | false ✓ |
| 7 | beforeSwap | 1 | true | true ✓ |
| 6 | afterSwap | 1 | true | true ✓ |
| 5 | beforeDonate | 0 | false | false ✓ |
| 4 | afterDonate | 0 | false | false ✓ |
| 3 | beforeSwapReturnsDelta | 0 | false | false ✓ |
| 2 | afterSwapReturnsDelta | 1 | true | true ✓ |
| 1 | afterAddLiquidityReturnsDelta | 0 | false | false ✓ |
| 0 | afterRemoveLiquidityReturnsDelta | 0 | false | false ✓ |
All flags match the address bitmask and the source getHookPermissions().
Properties
- dynamicFee: false ✓ —
_beforeSwapalways returnslpFeeOverride = 0; noupdateDynamicLPFee()calls. The fixed 1%/5% fees are applied as hook deltas inafterSwap, not as LP fee overrides. - upgradeable: false ✓ — No proxy pattern, no mutable
delegatecalltarget, no SELFDESTRUCT.uniChainis immutable. - requiresCustomSwapData: false ✓ —
hookDatais accepted but never read in either callback; swaps succeed with empty bytes. - vanillaSwap: false ✓ — Correct:
afterSwapReturnsDeltais true, and the hook executes nested swaps (buyback) and burns tokens inside_afterSwap, materially changing swap behavior. - swapAccess: "none" ✓ —
_beforeSwaphas no access control. It short-circuits for the internal buyback reentrancy guard and rejects exact-output swaps (ExactOutputUnsupported), but there is no allowlist, governance flag, or temporal gate restricting who may swap.
Metadata
- chain/chainId:
ethereum→ chainId 1 ✓ - verifiedSource: true ✓ — confirmed by
source_meta.json("verified": true) - name: "UniChainHook" ✓ — matches the Solidity contract name exactly
- description ✓ — All technical claims are substantiated:
- "burns 1% of token output on buys":
BUY_FEE_BPS = 100applied to UniChain output ✓ - "uses 5% of ETH output to execute a nested buyback-and-burn on sells":
SELL_FEE_BPS = 500triggerspoolManager.swapbuying back UniChain and burning it ✓ - "reducing CHAIN total supply on every trade":
uniChain.burn()called on both paths ✓ - "single canonical CHAIN/ETH pool":
_beforeInitializeenforces a one-time pool lock ✓ - No audit, safety, or marketing language present ✓
- "burns 1% of token output on buys":
Ponx
approved these changes
Sep 16, 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/0x4fef97b09b6e2be7ee62331ef47f5fc1bef1a0c4
branch
September 16, 2026 23:05
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 for a deflationary ERC-20 (CHAIN) that burns 1% of token output on buys and uses 5% of ETH output to execute a nested buyback-and-burn on sells, reducing CHAIN total supply on every trade in a single canonical CHAIN/ETH pool.
Flags
Properties
Warnings
Closes #7138