From 06d974641b0285fdf8df860c0942c8498e0e568c Mon Sep 17 00:00:00 2001 From: Austin Adams <36116882+aadams@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:00:49 -0500 Subject: [PATCH] feat: update v2 supported UR (#154) * Revert "2.0.0" This reverts commit b9f5fb07d9c5d536522fd24c33b74ecfdc5ffc43. * Revert "Support STETH trades that auto wrap to WSTETH (#148)" This reverts commit d52ed08a78965e22548d9caf093bc0e567fe9d1f. * feat: update v2 supported ur * bump sdk version * revert v2 sdk bump * yarn * update celo --------- Co-authored-by: Mark Toda --- package.json | 2 +- src/utils/constants.ts | 24 ++++++++++++------------ yarn.lock | 8 ++++---- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 1a1a00d0..c8ac114e 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@uniswap/permit2-sdk": "^1.2.0", "@uniswap/router-sdk": "^1.6.0", "@uniswap/sdk-core": "^4.0.0", - "@uniswap/universal-router": "1.4.3", + "@uniswap/universal-router": "1.6.0", "@uniswap/v2-sdk": "^3.2.0", "@uniswap/v3-sdk": "^3.10.0", "bignumber.js": "^9.0.2", diff --git a/src/utils/constants.ts b/src/utils/constants.ts index a029252f..f868e965 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -29,9 +29,9 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = { }, // polygon [137]: { - router: '0x643770E279d5D0733F21d6DC03A8efbABf3255B4', + router: '0xec7BE89e9d109e7e3Fec59c222CF297125FEFda2', weth: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', - creationBlock: 46866777, + creationBlock: 52210153, }, //polygon mumbai [80001]: { @@ -41,9 +41,9 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = { }, //optimism [10]: { - router: '0xeC8B0F7Ffe3ae75d7FfAb09429e3675bb63503e4', + router: '0xCb1355ff08Ab38bBCE60111F1bb2B784bE25D7e8', weth: '0x4200000000000000000000000000000000000006', - creationBlock: 108825869, + creationBlock: 114702266, }, // optimism goerli [420]: { @@ -53,9 +53,9 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = { }, // arbitrum [42161]: { - router: '0xeC8B0F7Ffe3ae75d7FfAb09429e3675bb63503e4', + router: '0x5E325eDA8064b456f4781070C0738d849c824258', weth: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1', - creationBlock: 125861718, + creationBlock: 169472836, }, // arbitrum goerli [421613]: { @@ -77,15 +77,15 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = { }, // binance smart chain [56]: { - router: '0xeC8B0F7Ffe3ae75d7FfAb09429e3675bb63503e4', + router: '0x4Dae2f939ACf50408e13d58534Ff8c2776d45265', weth: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', - creationBlock: 31254967, + creationBlock: 35160263, }, // avalanche [43114]: { - router: '0x82635AF6146972cD6601161c4472ffe97237D292', + router: '0x4Dae2f939ACf50408e13d58534Ff8c2776d45265', weth: '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', - creationBlock: 34491144, + creationBlock: 40237257, }, // base goerli [84531]: { @@ -95,9 +95,9 @@ const CHAIN_CONFIGS: { [key: number]: ChainConfig } = { }, // base mainnet [8453]: { - router: '0xeC8B0F7Ffe3ae75d7FfAb09429e3675bb63503e4', + router: '0x3fC91A3afd70395Cd496C647d5a6CC9D4B2b7FAD', weth: '0x4200000000000000000000000000000000000006', - creationBlock: 3229053, + creationBlock: 9107268, }, } diff --git a/yarn.lock b/yarn.lock index d8f9fdcb..a8fb1dc6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2238,10 +2238,10 @@ dotenv "^14.2.0" hardhat-watcher "^2.1.1" -"@uniswap/universal-router@1.4.3": - version "1.4.3" - resolved "https://registry.yarnpkg.com/@uniswap/universal-router/-/universal-router-1.4.3.tgz#7736cf7f8dc99435a6be87c2e80b5c5d4589d641" - integrity sha512-SZmYfhYZtsuxrTMCitcA39iJuG9sbe2nvm9iQfd70WjMpbB0+GuEs5OqSHc5tB/ujrVKzPJ1LOoNNGOs0xPEeA== +"@uniswap/universal-router@1.6.0": + version "1.6.0" + resolved "https://registry.yarnpkg.com/@uniswap/universal-router/-/universal-router-1.6.0.tgz#3d7372e98a0303c70587802ee6841b8b6b42fc6f" + integrity sha512-Gt0b0rtMV1vSrgXY3vz5R1RCZENB+rOkbOidY9GvcXrK1MstSrQSOAc+FCr8FSgsDhmRAdft0lk5YUxtM9i9Lg== dependencies: "@openzeppelin/contracts" "4.7.0" "@uniswap/v2-core" "1.0.1"