Skip to content

Commit 4dbce8f

Browse files
authored
fix: monad hardcoded gas limit incase tenderly support not on time (Uniswap#1256)
in case tenderly support cannot be on time during monad GA, we use hardcoded gas limit
1 parent ed4c10e commit 4dbce8f

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

‎lib/util/gasLimit.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const UNICHAIN_SEPOLIA_UPPER_SWAP_GAS_LIMIT = BigNumber.from(300000)
1212
export const BNB_UPPER_SWAP_GAS_LIMIT = BigNumber.from(200000)
1313
// https://github.com/Uniswap/smart-order-router/blob/c77d04d334cc1c6694bd74d88287cc5b6e3a7425/src/util/onchainQuoteProviderConfigs.ts#L83 divide by 10
1414
export const ZORA_UPPER_SWAP_GAS_LIMIT = BigNumber.from(200000)
15-
export const MONAD_UPPER_SWAP_GAS_LIMIT = BigNumber.from(400000)
15+
export const MONAD_UPPER_SWAP_GAS_LIMIT = BigNumber.from(500000)
1616

1717
export const CHAIN_TO_GAS_LIMIT_MAP: { [chainId: number]: BigNumber } = {
1818
[ChainId.ZKSYNC]: ZKSYNC_UPPER_SWAP_GAS_LIMIT,
@@ -22,4 +22,5 @@ export const CHAIN_TO_GAS_LIMIT_MAP: { [chainId: number]: BigNumber } = {
2222
[ChainId.BNB]: BNB_UPPER_SWAP_GAS_LIMIT,
2323
[ChainId.ZORA]: ZORA_UPPER_SWAP_GAS_LIMIT,
2424
[ChainId.MONAD_TESTNET]: MONAD_UPPER_SWAP_GAS_LIMIT,
25+
[ChainId.MONAD]: MONAD_UPPER_SWAP_GAS_LIMIT,
2526
}

‎package-lock.json‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"@uniswap/permit2-sdk": "^1.3.0",
8989
"@uniswap/router-sdk": "^2.1.0",
9090
"@uniswap/sdk-core": "^7.8.0",
91-
"@uniswap/smart-order-router": "4.22.28",
91+
"@uniswap/smart-order-router": "4.22.29",
9292
"@uniswap/smart-wallet-sdk": "^2.1.1",
9393
"@uniswap/token-lists": "^1.0.0-beta.33",
9494
"@uniswap/universal-router-sdk": "^4.21.0",

0 commit comments

Comments
 (0)