Add uTokenHook hook on ethereum - #7153
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/0xd1cf932ce8d86b6b19720c064ea19683131100cc.json
Contract: uTokenHook (file: src_DeflationaryHook.sol) — verified on Ethereum mainnet.
Flags
Address low 14 bits: 0x00cc → beforeSwap=1, afterSwap=1, beforeSwapReturnsDelta=1, afterSwapReturnsDelta=1, all others 0. Matches getHookPermissions() in source and the hook file exactly. ✓
Properties
- dynamicFee=false: No
updateDynamicLPFee()orlpFeeOverride. The pool fee is a staticuint24set at initialization. ✓ - upgradeable=false: No proxy pattern, no mutable
delegatecalltarget.poolManagerandauthorizedareimmutable. ✓ - requiresCustomSwapData=false: The
hookDataparameter is unnamed and unused in bothbeforeSwapandafterSwap. Swaps function correctly with empty hookData. ✓ - vanillaSwap=false: Correct —
beforeSwapReturnsDeltaandafterSwapReturnsDeltaare both true, and the hook actively redirects token amounts to burn them, materially changing swap output. ✓ - swapAccess="none":
beforeSwapcarries only theonlyPoolManagerframework guard; no user-facing access control on swap execution. ✓
Metadata
- verifiedSource=true: Confirmed by
source_meta.json. ✓ - chainId=1: Ethereum mainnet. ✓
- name="uTokenHook": Matches the on-chain contract name
contract uTokenHook. ✓ - description: Accurately describes the burn mechanism — up to 10% cap (
MAX_BURN_FEE_BPS = 1000), burn applied inbeforeSwapwhen token is the specified currency and inafterSwapfor unspecified token output, andauthorized(immutable) gates pool init and liquidity operations. ✓
All fields verified against source. No issues found.
Ponx
approved these changes
Sep 17, 2026
Ponx
left a comment
Collaborator
There was a problem hiding this comment.
Bot review verified; Vercel preview is advisory. LGTM.
Ponx
deleted the
hooks/ethereum/0xd1cf932ce8d86b6b19720c064ea19683131100cc
branch
September 17, 2026 00:54
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
Deflationary hook for ETH/token pools that burns a configurable percentage (up to 10%) of the token on every swap. Burn is applied in beforeSwap for token-specified swaps and in afterSwap for unspecified token output. Pool initialization and liquidity management are restricted to an immutable authorized address.
Flags
Properties
Warnings
Closes #7141