Skip to content

feat: allowlist goldpesa hooks#1330

Merged
jsy1218 merged 1 commit intomainfrom
siyujiang/route-877-allowlist-goldpesa-hooks
Jan 15, 2026
Merged

feat: allowlist goldpesa hooks#1330
jsy1218 merged 1 commit intomainfrom
siyujiang/route-877-allowlist-goldpesa-hooks

Conversation

@jsy1218
Copy link
Member

@jsy1218 jsy1218 commented Jan 15, 2026

GPO Hooks:

curl 'https://uodrvgu5rj.execute-api.us-east-2.amazonaws.com/prod/quote?amount=100000&deadline=1800&enableFeeOnTransferFeeFetching=true&enableUniversalRouter=true&hooksOptions=HOOKS_INCLUSIVE&portionBips=25&portionRecipient=0x5d64D14D2CF4fe5fe4e65B1c7E3D11e18D493091&protocols=v4&quoteIntent=swap&quoteSpeed=standard&recipient=0x8da91A6298eA5d1A8Bc985e99798fd0A0f05701a&simulateFromAddress=0x8da91A6298eA5d1A8Bc985e99798fd0A0f05701a&slippageTolerance=2.5&tokenInAddress=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&tokenInChainId=8453&tokenOutChainId=8453&tokenOutAddress=0x50E139fFa6BbD52d5a5354BAcB5E0C94D48d12b3&type=exactIn&enableDebug=true&requestId=fca167d3-f0b8-4769-a3e0-9db90e3ad159&poolsToManuallyRouteThrough=0xe6b8b2f7320759927c826e663ba1a77eaf8156bad1422234d5282c17c5e8f637' \
        -H 'x-universal-router-version: 2.0'
{"methodParameters":{"calldata":"0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000069685f590000000000000000000000000000000000000000000000000000000000000003100604000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000003070b0e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000186a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000050e139ffa6bbd52d5a5354bacb5e0c94d48d12b3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006cabe2fd9fb60c5afcab7de732b0a224fc382eec00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda0291300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000006000000000000000000000000050e139ffa6bbd52d5a5354bacb5e0c94d48d12b300000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000050e139ffa6bbd52d5a5354bacb5e0c94d48d12b30000000000000000000000005d64d14d2cf4fe5fe4e65b1c7e3d11e18d4930910000000000000000000000000000000000000000000000000000000000000019000000000000000000000000000000000000000000000000000000000000006000000000000000000000000050e139ffa6bbd52d5a5354bacb5e0c94d48d12b30000000000000000000000008da91a6298ea5d1a8bc985e99798fd0a0f05701a00000000000000000000000000000000000000000000000001371a7b575e82ef","value":"0x00","to":"0x6ff5693b99212da76ad316178a184ab56d299b43"},"blockNumber":"40828343","amount":"100000","amountDecimals":"0.1","quote":"89981985640379377","quoteDecimals":"0.089981985640379377","quoteGasAdjusted":"89981985640379377","quoteGasAdjustedDecimals":"0.089981985640379377","quoteGasAndPortionAdjusted":"89757030676278428","quoteGasAndPortionAdjustedDecimals":"0.089757030676278428","gasUseEstimateQuote":"0","gasUseEstimateQuoteDecimals":"0","gasUseEstimate":"286490","gasUseEstimateUSD":"0.004018","simulationStatus":"SUCCESS","simulationError":false,"gasPriceWei":"4222519","route":[[{"type":"v4-pool","address":"0xe6b8b2f7320759927c826e663ba1a77eaf8156bad1422234d5282c17c5e8f637","tokenIn":{"chainId":8453,"decimals":"6","address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC"},"tokenOut":{"chainId":8453,"decimals":"18","address":"0x50E139fFa6BbD52d5a5354BAcB5E0C94D48d12b3","symbol":"GPO"},"fee":"0","tickSpacing":"1","hooks":"0x6cabe2fd9fb60c5afcab7de732b0a224fc382eec","liquidity":"100000132191460160614","sqrtRatioX96":"79236092805860752319873","tickCurrent":"-276323","amountIn":"100000","amountOut":"89757030676278428"}]],"routeString":"[V4] 100.00% = USDC -- 0% [0xe6b8b2f7320759927c826e663ba1a77eaf8156bad1422234d5282c17c5e8f637]GPO","quoteId":"2fc12","hitsCachedRoutes":false,"portionBips":25,"portionRecipient":"0x5d64D14D2CF4fe5fe4e65B1c7E3D11e18D493091","portionAmount":"224954964100948","portionAmountDecimals":"0.000224954964100948","priceImpact":"10.00"}%                

GPX Hooks

curl 'https://uodrvgu5rj.execute-api.us-east-2.amazonaws.com/prod/quote?amount=100000&deadline=1800&enableFeeOnTransferFeeFetching=true&enableUniversalRouter=true&hooksOptions=HOOKS_INCLUSIVE&portionBips=25&portionRecipient=0x5d64D14D2CF4fe5fe4e65B1c7E3D11e18D493091&protocols=v4&quoteIntent=swap&quoteSpeed=standard&recipient=0x8da91A6298eA5d1A8Bc985e99798fd0A0f05701a&simulateFromAddress=0x8da91A6298eA5d1A8Bc985e99798fd0A0f05701a&slippageTolerance=2.5&tokenInAddress=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&tokenInChainId=8453&tokenOutChainId=8453&tokenOutAddress=0x454F8c3f1FC79a98363DB6104A20AC59A02A3133&type=exactIn&enableDebug=true&requestId=fca167d3-f0b8-4769-a3e0-9db90e3ad159&poolsToManuallyRouteThrough=0xe33d2ac4d30348f62723c6a065c34a071970a2cf3776679fc90b07b9a990dcac' \
        -H 'x-universal-router-version: 2.0'
{"methodParameters":{"calldata":"0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000069685f9e0000000000000000000000000000000000000000000000000000000000000003100604000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000003070b0e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000454f8c3f1fc79a98363db6104a20ac59a02a3133000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000004519e2b040ff1b64fa03abe2aef0bc99d7cceaa800000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000454f8c3f1fc79a98363db6104a20ac59a02a3133000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000454f8c3f1fc79a98363db6104a20ac59a02a31330000000000000000000000005d64d14d2cf4fe5fe4e65b1c7e3d11e18d49309100000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000060000000000000000000000000454f8c3f1fc79a98363db6104a20ac59a02a31330000000000000000000000008da91a6298ea5d1a8bc985e99798fd0a0f05701a000000000000000000000000000000000000000000000000004da1a12686df52","value":"0x00","to":"0x6ff5693b99212da76ad316178a184ab56d299b43"},"blockNumber":"40828377","amount":"100000","amountDecimals":"0.1","quote":"22453703140624375","quoteDecimals":"0.022453703140624375","quoteGasAdjusted":"22453703140624375","quoteGasAdjustedDecimals":"0.022453703140624375","quoteGasAndPortionAdjusted":"22397568882772814","quoteGasAndPortionAdjustedDecimals":"0.022397568882772814","gasUseEstimateQuote":"0","gasUseEstimateQuoteDecimals":"0","gasUseEstimate":"413410","gasUseEstimateUSD":"0.005866","simulationStatus":"SUCCESS","simulationError":false,"gasPriceWei":"4274497","route":[[{"type":"v4-pool","address":"0xe33d2ac4d30348f62723c6a065c34a071970a2cf3776679fc90b07b9a990dcac","tokenIn":{"chainId":8453,"decimals":"6","address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC"},"tokenOut":{"chainId":8453,"decimals":"18","address":"0x454F8c3f1FC79a98363DB6104A20AC59A02A3133","symbol":"GPX"},"fee":"0","tickSpacing":"1","hooks":"0x4519e2b040ff1b64fa03abe2aef0bc99d7cceaa8","liquidity":"100887769534272068","sqrtRatioX96":"166361600837453757860483","tickCurrent":"-261487","amountIn":"100000","amountOut":"22397568882772814"}]],"routeString":"[V4] 100.00% = USDC -- 0% [0xe33d2ac4d30348f62723c6a065c34a071970a2cf3776679fc90b07b9a990dcac]GPX","quoteId":"723a9","hitsCachedRoutes":false,"portionBips":25,"portionRecipient":"0x5d64D14D2CF4fe5fe4e65B1c7E3D11e18D493091","portionAmount":"56134257851560","portionAmountDecimals":"0.00005613425785156","priceImpact":"1.00"}%                     

@jsy1218 jsy1218 self-assigned this Jan 15, 2026
@jsy1218 jsy1218 requested a review from a team January 15, 2026 03:04
@graphite-app graphite-app bot requested review from cgkol and xrsv January 15, 2026 03:09
@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 to this PR based on Siyu Jiang (See-You John)'s automation.

@jsy1218 jsy1218 merged commit aa189b5 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.

2 participants