Skip to content

Commit 8c4807c

Browse files
authored
fix: incrase gas limits to 800k on base v4 to unblock FEYPEPE/FEY hooked routing quoting (#1269)
from tenderly repro: 400k sim has success:false from multicall https://www.tdly.co/shared/simulation/d622b801-ed96-42d3-a567-684b18c553bf 800k sim has success:true from multicall https://www.tdly.co/shared/simulation/d70ab292-6efb-46e5-a73c-27043b4c5e74 tested on my local it can route through https://app.uniswap.org/explore/pools/base/0xb8769bd13482afa2328fab87aced2525a2ed753fbd6925fce3c43b3f99bac8c1: ``` curl 'https://uodrvgu5rj.execute-api.us-east-2.amazonaws.com/prod/quote?amount=1000000000000000000000000&deadline=1800&enableFeeOnTransferFeeFetching=true&enableUniversalRouter=true&hooksOptions=HOOKS_INCLUSIVE&portionBips=25&portionRecipient=0x5d64D14D2CF4fe5fe4e65B1c7E3D11e18D493091&protocols=v2,v3,v4,mixed&quoteIntent=swap&quoteSpeed=standard&recipient=0xAAAA44272dc658575Ba38f43C438447dDED45358&simulateFromAddress=0xAAAA44272dc658575Ba38f43C438447dDED45358&slippageTolerance=2.5&tokenInAddress=0x2C117735b7c6fF9cD30019abfa728C99a77eB76F&tokenInChainId=8453&tokenOutChainId=8453&tokenOutAddress=0xD09cf0982A32DD6856e12d6BF2F08A822eA5D91D&type=exactIn&enableDebug=true&requestId=8e658895-8c09-4917-98df-e2244e1cc12&cunicornSecret=MASKED&debugRoutingConfig=%7B%0A%20%20%20%22useCachedRoutes%22%3A%20false%2C%0A%20%20%20%22debugRouting%22%3A%20true%0A%7D' \ -H 'x-universal-router-version: 2.0' {"methodParameters":{"calldata":"0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000691678950000000000000000000000000000000000000000000000000000000000000003100604000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000044000000000000000000000000000000000000000000000000000000000000004c000000000000000000000000000000000000000000000000000000000000003c0000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000003070b0e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000200000000000000000000000002c117735b7c6ff9cd30019abfa728c99a77eb76f000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000d3c21bcecceda1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000020000000000000000000000000d09cf0982a32dd6856e12d6bf2f08a822ea5d91d000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000c80000000000000000000000005b409184204b86f708d3aebb3cad3f02835f68cc00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000002c117735b7c6ff9cd30019abfa728c99a77eb76f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000d09cf0982a32dd6856e12d6bf2f08a822ea5d91d000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000d09cf0982a32dd6856e12d6bf2f08a822ea5d91d0000000000000000000000005d64d14d2cf4fe5fe4e65b1c7e3d11e18d49309100000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000060000000000000000000000000d09cf0982a32dd6856e12d6bf2f08a822ea5d91d000000000000000000000000aaaa44272dc658575ba38f43c438447dded4535800000000000000000000000000000000000000000000010a01392634ecaa24db","value":"0x00","to":"0x6ff5693b99212da76ad316178a184ab56d299b43"},"blockNumber":"38144597","amount":"1000000000000000000000000","amountDecimals":"1000000","quote":"5042200620516573374371","quoteDecimals":"5042.200620516573374371","quoteGasAdjusted":"4928099220866321824035","quoteGasAdjustedDecimals":"4928.099220866321824035","quoteGasAndPortionAdjusted":"4915493719315030390599","quoteGasAndPortionAdjustedDecimals":"4915.493719315030390599","gasUseEstimateQuote":"114101399650251550335","gasUseEstimateQuoteDecimals":"114.101399650251550335","gasUseEstimate":"386473","gasUseEstimateUSD":"0.010831","simulationStatus":"INSUFFICIENT_BALANCE","simulationError":false,"gasPriceWei":"8695441","route":[[{"type":"v4-pool","address":"0xb8769bd13482afa2328fab87aced2525a2ed753fbd6925fce3c43b3f99bac8c1","tokenIn":{"chainId":8453,"decimals":"18","address":"0x2C117735b7c6fF9cD30019abfa728C99a77eB76F","symbol":"FEYPEPE"},"tokenOut":{"chainId":8453,"decimals":"18","address":"0xD09cf0982A32DD6856e12d6BF2F08A822eA5D91D","symbol":"FEY"},"fee":"8388608","tickSpacing":"200","hooks":"0x5b409184204b86f708d3aebb3cad3f02835f68cc","liquidity":"4949743113338337374500718006","sqrtRatioX96":"5660017915373421272096707328","tickCurrent":"-52781","amountIn":"1000000000000000000000000","amountOut":"5029595118965281940935"}]],"routeString":"[V4] 100.00% = FEYPEPE -- 838.8608% [0xb8769bd13482afa2328fab87aced2525a2ed753fbd6925fce3c43b3f99bac8c1]FEY","quoteId":"e4751","hitsCachedRoutes":false,"portionBips":25,"portionRecipient":"0x5d64D14D2CF4fe5fe4e65B1c7E3D11e18D493091","portionAmount":"12605501551291433435","portionAmountDecimals":"12.605501551291433435","priceImpact":"1.45"}% ```
1 parent a78f79d commit 8c4807c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/util/onChainQuoteProviderConfigs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ export const OPTIMISTIC_CACHED_ROUTES_BATCH_PARAMS: { [protocol in Protocol]: {
272272
[Protocol.V4]: {
273273
...constructSameBatchParamsMap(DEFAULT_BATCH_PARAMS),
274274
[ChainId.BASE]: {
275-
multicallChunk: 330,
276-
gasLimitPerCall: 400_000,
275+
multicallChunk: 165,
276+
gasLimitPerCall: 800_000,
277277
quoteMinSuccessRate: 0.1,
278278
},
279279
[ChainId.ARBITRUM_ONE]: {
@@ -646,8 +646,8 @@ export const NON_OPTIMISTIC_CACHED_ROUTES_BATCH_PARAMS: { [protocol in Protocol]
646646
[Protocol.V4]: {
647647
...constructSameBatchParamsMap(DEFAULT_BATCH_PARAMS),
648648
[ChainId.BASE]: {
649-
multicallChunk: 330,
650-
gasLimitPerCall: 400_000,
649+
multicallChunk: 165,
650+
gasLimitPerCall: 800_000,
651651
quoteMinSuccessRate: 0.1,
652652
},
653653
[ChainId.ARBITRUM_ONE]: {

0 commit comments

Comments
 (0)