Skip to content

feat: Allowlist Universal Hook#1335

Merged
Ponx merged 5 commits intomainfrom
siyujiang/route-885-allowlist-universal-hook
Jan 15, 2026
Merged

feat: Allowlist Universal Hook#1335
Ponx merged 5 commits intomainfrom
siyujiang/route-885-allowlist-universal-hook

Conversation

@jsy1218
Copy link
Member

@jsy1218 jsy1218 commented Jan 15, 2026

can route through hooked pool:

curl 'https://uodrvgu5rj.execute-api.us-east-2.amazonaws.com/prod/quote?amount=1000&deadline=1800&enableFeeOnTransferFeeFetching=true&enableUniversalRouter=true&hooksOptions=HOOKS_INCLUSIVE&portionBips=25&portionRecipient=0x5d64D14D2CF4fe5fe4e65B1c7E3D11e18D493091&protocols=v4&quoteIntent=swap&quoteSpeed=standard&recipient=0xB5A2a236581dbd6BCECD8A25EeBFF140595f138C&simulateFromAddress=0xB5A2a236581dbd6BCECD8A25EeBFF140595f138C&slippageTolerance=2.5&tokenInAddress=0x078D782b760474a361dDA0AF3839290b0EF57AD6&tokenInChainId=130&tokenOutChainId=130&tokenOutAddress=0x83f31af747189c2FA9E5DeB253200c505eff6ed2&type=exactIn&enableDebug=true&requestId=fca167d3-f0b8-4769-a3e0-9db90e3ad159&poolsToManuallyRouteThrough=0x03f7cea23a0c6f2bbbaca94eeaf292290d9a4950e3f806495683a9fb1a941faf' \
        -H 'x-universal-router-version: 2.0'
{"methodParameters":{"calldata":"0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000696896730000000000000000000000000000000000000000000000000000000000000003100604000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000003070b0e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000078d782b760474a361dda0af3839290b0ef57ad6000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000003e800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000083f31af747189c2fa9e5deb253200c505eff6ed200000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000078d782b760474a361dda0af3839290b0ef57ad600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000083f31af747189c2fa9e5deb253200c505eff6ed200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000083f31af747189c2fa9e5deb253200c505eff6ed20000000000000000000000005d64d14d2cf4fe5fe4e65b1c7e3d11e18d4930910000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000006000000000000000000000000083f31af747189c2fa9e5deb253200c505eff6ed2000000000000000000000000b5a2a236581dbd6bcecd8a25eebff140595f138c0000000000000000000000000000000000000000000000000000020d3b5b92f6","value":"0x00","to":"0xef740bf23acae26f6492b10de645d6b98dc8eaf3"},"blockNumber":"37711780","amount":"1000","amountDecimals":"0.001","quote":"2318045142588","quoteDecimals":"0.000002318045142588","quoteGasAdjusted":"2318045142588","quoteGasAdjustedDecimals":"0.000002318045142588","quoteGasAndPortionAdjusted":"2312250029731","quoteGasAndPortionAdjustedDecimals":"0.000002312250029731","gasUseEstimateQuote":"0","gasUseEstimateQuoteDecimals":"0","gasUseEstimate":"302756","gasUseEstimateUSD":"0.000007642620765017","simulationStatus":"SUCCESS","simulationError":false,"gasPriceWei":"2097","route":[[{"type":"v4-pool","address":"0x20b40f9aba23ce583e90edd484678a09d8a7800f0edbd04f383420ae68762064","tokenIn":{"chainId":130,"decimals":"6","address":"0x078D782b760474a361dDA0AF3839290b0EF57AD6","symbol":"USDC"},"tokenOut":{"chainId":130,"decimals":"18","address":"0x83f31af747189c2FA9E5DeB253200c505eff6ed2","symbol":"ZEC"},"fee":"100","tickSpacing":"1","hooks":"0x0000000000000000000000000000000000000000","liquidity":"94324578734722","sqrtRatioX96":"3816435219990944090814999835967488","tickCurrent":"215660","amountIn":"1000","amountOut":"2312250029731"}]],"routeString":"[V4] 100.00% = USDC -- 0.01% [0x20b40f9aba23ce583e90edd484678a09d8a7800f0edbd04f383420ae68762064]ZEC","quoteId":"007db","hitsCachedRoutes":false,"portionBips":25,"portionRecipient":"0x5d64D14D2CF4fe5fe4e65B1c7E3D11e18D493091","portionAmount":"5795112856","portionAmountDecimals":"0.000000005795112856","priceImpact":"0.10"}%                         

@graphite-app graphite-app bot requested a review from a team January 15, 2026 07:04
@graphite-app graphite-app bot requested review from cgkol and xrsv and removed request for a team January 15, 2026 07:04
@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)

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

@Ponx Ponx enabled auto-merge (squash) January 15, 2026 14:37
@Ponx Ponx merged commit 9c7772c into main Jan 15, 2026
7 checks passed
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.

3 participants