Skip to content

Conversation

@SmokeyYang
Copy link

This hook is designed to support a deflationary governance token model by invoking a controlled burn mechanism during liquidity-related actions.

The hook does not introduce custom fee logic, privileged state changes, or external value extraction. Its behavior is deterministic and limited in scope.

Hooked Pool

Uniswap App link:
https://app.uniswap.org/explore/pools/arbitrum/0xec6e37b2d66aa5ef5a9fc296b4da3474b121f512428dd425a51c6424955fc5eb

Hook Purpose
• Support a deflationary token economy for the protocol’s governance token
• Ensure predictable supply reduction through on-chain, rule-based burn logic
• Maintain transparency and simplicity in liquidity interactions

Technical Behavior
• The hook is triggered only during predefined pool lifecycle events
• Executes a burn function on the governance token contract
• No external calls beyond the token burn invocation
• No owner-only or upgradeable logic
• No dynamic parameter mutation after deployment

Security Considerations
• No reentrancy risk introduced by the hook
• No custody of user funds
• No fee skimming, MEV extraction, or hidden value transfer
• Token contract and hook contract are immutable

Permissions & Trust Model
• Hook contract has no admin privileges
• Pool permissions are permanently renounced
• Token minting and privileged controls are disabled
• Burn logic is fully on-chain and verifiable

Impact on Users & Liquidity
• Does not alter swap pricing logic
• Does not affect LP positions beyond the intended burn mechanism
• No adverse impact on pool solvency or price discovery

Motivation for Allowlisting

The hook enables a standard deflationary mechanism without introducing additional risk to LPs or traders.
Allowlisting this hook would restore normal trading activity for the community while maintaining Uniswap v4’s security and design principles.

Additional Notes
• The hook has been tested on testnet and behaves as expected
• We are happy to provide audits, test cases, or further technical details if required

@jsy1218 jsy1218 changed the base branch from main to new-hooks-routing January 14, 2026 04:08
@jsy1218 jsy1218 deleted the branch Uniswap:new-hooks-routing January 15, 2026 00:41
@jsy1218 jsy1218 closed this Jan 15, 2026
@jsy1218 jsy1218 reopened this Jan 15, 2026
@jsy1218
Copy link
Member

jsy1218 commented Jan 15, 2026

cannot route through your pool somehow

curl 'https://uodrvgu5rj.execute-api.us-east-2.amazonaws.com/prod/quote?amount=1000000000000000&deadline=1800&enableFeeOnTransferFeeFetching=true&enableUniversalRouter=true&hooksOptions=HOOKS_INCLUSIVE&portionBips=25&portionRecipient=0x5d64D14D2CF4fe5fe4e65B1c7E3D11e18D493091&protocols=v4&quoteIntent=swap&quoteSpeed=standard&recipient=0x44458aC9F62D4C0946Ebd94c5a851C87c25e8E9f&simulateFromAddress=0x44458aC9F62D4C0946Ebd94c5a851C87c25e8E9f&slippageTolerance=2.5&tokenInAddress=0x33b49f2264e85bB124d2730DC180182717D436Ae&tokenInChainId=42161&tokenOutChainId=42161&tokenOutAddress=0xaf88d065e77c8cC2239327C5EDb3A432268e5831&type=exactIn&enableDebug=true&requestId=fca167d3-f0b8-4769-a3e0-9db90e3ad159&poolsToManuallyRouteThrough=0xec6e37b2d66aa5ef5a9fc296b4da3474b121f512428dd425a51c6424955fc5eb' \
        -H 'x-universal-router-version: 2.0'
{"detail":"No route found","errorCode":"NO_ROUTE","id":"88265"}%                                                           

can you double check your pool/hook?

@jsy1218
Copy link
Member

jsy1218 commented Jan 15, 2026

multicall 0xadF885960B47eA2CD9B55E6DAc6B42b7Cb2806dB with following quoter contract calls:

[{"target":"0x3972c00f7ed4885e145823eb7c655375d275a1c5","callData":"0xca253dc9000000000000000000000000000000000000000000000000000000000000002000000000000000000000000033b49f2264e85bb124d2730dc180182717d436ae00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000e35fa931a00000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000","gasLimit":30000000},{"target":"0x3972c00f7ed4885e145823eb7c655375d275a1c5","callData":"0xca253dc9000000000000000000000000000000000000000000000000000000000000002000000000000000000000000033b49f2264e85bb124d2730dc180182717d436ae00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000001c6bf5263400000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000","gasLimit":30000000},{"target":"0x3972c00f7ed4885e145823eb7c655375d275a1c5","callData":"0xca253dc9000000000000000000000000000000000000000000000000000000000000002000000000000000000000000033b49f2264e85bb124d2730dc180182717d436ae00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000002aa1efb94e00000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000","gasLimit":30000000},{"target":"0x3972c00f7ed4885e145823eb7c655375d275a1c5","callData":"0xca253dc9000000000000000000000000000000000000000000000000000000000000002000000000000000000000000033b49f2264e85bb124d2730dc180182717d436ae000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e5831000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000c8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000","gasLimit":30000000},{"target":"0x3972c00f7ed4885e145823eb7c655375d275a1c5","callData":"0xca253dc9000000000000000000000000000000000000000000000000000000000000002000000000000000000000000033b49f2264e85bb124d2730dc180182717d436ae00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000e35fa931a00000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000","gasLimit":30000000},{"target":"0x3972c00f7ed4885e145823eb7c655375d275a1c5","callData":"0xca253dc9000000000000000000000000000000000000000000000000000000000000002000000000000000000000000033b49f2264e85bb124d2730dc180182717d436ae00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000001c6bf5263400000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000","gasLimit":30000000},{"target":"0x3972c00f7ed4885e145823eb7c655375d275a1c5","callData":"0xca253dc9000000000000000000000000000000000000000000000000000000000000002000000000000000000000000033b49f2264e85bb124d2730dc180182717d436ae00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000002aa1efb94e00000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000","gasLimit":30000000},{"target":"0x3972c00f7ed4885e145823eb7c655375d275a1c5","callData":"0xca253dc9000000000000000000000000000000000000000000000000000000000000002000000000000000000000000033b49f2264e85bb124d2730dc180182717d436ae000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e583100000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000","gasLimit":30000000}]
"result":[false,{"type":"BigNumber","hex":"0x01a8a0"},"0x6190b2b0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000247a5ed734041894d94f4c846913a30d123a4d3470983ce92f6b56f3a0abc3f6e69ed5bb0400000000000000000000000000000000000000000000000000000000"],"msg":"Invalid result calling quoteExactInput address 0x3972c00f7ed4885e145823eb7c655375d275a1c5 with params [object Object]
cast 4byte-decode 0x7a5ed734041894d94f4c846913a30d123a4d3470983ce92f6b56f3a0abc3f6e69ed5bb04
Warning: This is a nightly build of Foundry. It is recommended to use the latest stable version. To mute this warning set `FOUNDRY_DISABLE_NIGHTLY_WARNING` in your environment. 

1) "NotEnoughLiquidity(bytes32)"
0x041894d94f4c846913a30d123a4d3470983ce92f6b56f3a0abc3f6e69ed5bb04

you can debug from there

@graphite-app graphite-app bot requested review from a team, cgkol, jsy1218 and xrsv January 15, 2026 03:06
@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 15, 2026

Graphite Automations

"Request reviewers once CI passes on routing-api repo" took an action on this PR • (01/15/26)

5 reviewers were added and 1 assignee was added to this PR based on Siyu Jiang (See-You John)'s automation.

Copy link
Member

@jsy1218 jsy1218 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cannot approve on the hooks that can not quote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants