From 2218ca1e6f3454813ca305c3df70db1f56ff6679 Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:20:47 -0700 Subject: [PATCH] feat(v3-sdk): add mixed quoter address on base (#11) --- sdks/sdk-core/src/addresses.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sdks/sdk-core/src/addresses.ts b/sdks/sdk-core/src/addresses.ts index bb2b392f1..76602493e 100644 --- a/sdks/sdk-core/src/addresses.ts +++ b/sdks/sdk-core/src/addresses.ts @@ -10,7 +10,7 @@ type ChainAddresses = { nonfungiblePositionManagerAddress?: string tickLensAddress?: string swapRouter02Address?: string - v1MixedRouteQuoterAddress?: string + mixedRouteQuoterV1Address?: string } const DEFAULT_NETWORKS = [ChainId.MAINNET, ChainId.GOERLI, ChainId.SEPOLIA] @@ -75,11 +75,11 @@ const DEFAULT_ADDRESSES: ChainAddresses = { } const MAINNET_ADDRESSES: ChainAddresses = { ...DEFAULT_ADDRESSES, - v1MixedRouteQuoterAddress: '0x84E44095eeBfEC7793Cd7d5b57B7e401D7f1cA2E', + mixedRouteQuoterV1Address: '0x84E44095eeBfEC7793Cd7d5b57B7e401D7f1cA2E', } const GOERLI_ADDRESSES: ChainAddresses = { ...DEFAULT_ADDRESSES, - v1MixedRouteQuoterAddress: '0xBa60b6e6fF25488308789E6e0A65D838be34194e', + mixedRouteQuoterV1Address: '0xBa60b6e6fF25488308789E6e0A65D838be34194e', } const OPTIMISM_ADDRESSES: ChainAddresses = DEFAULT_ADDRESSES @@ -183,6 +183,7 @@ const BASE_ADDRESSES: ChainAddresses = { nonfungiblePositionManagerAddress: '0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1', tickLensAddress: '0x0CdeE061c75D43c82520eD998C23ac2991c9ac6d', swapRouter02Address: '0x2626664c2603336E57B271c5C0b26F421741e481', + mixedRouteQuoterV1Address: '0xe544efae946f0008ae9a8d64493efa7886b73776', } // Base Goerli v3 addresses @@ -349,9 +350,9 @@ export const TICK_LENS_ADDRESSES: AddressMap = { } export const MIXED_ROUTE_QUOTER_V1_ADDRESSES: AddressMap = SUPPORTED_CHAINS.reduce((memo, chainId) => { - const v1MixedRouteQuoterAddress = CHAIN_TO_ADDRESSES_MAP[chainId].v1MixedRouteQuoterAddress - if (v1MixedRouteQuoterAddress) { - memo[chainId] = v1MixedRouteQuoterAddress + const mixedRouteQuoterV1Address = CHAIN_TO_ADDRESSES_MAP[chainId].mixedRouteQuoterV1Address + if (mixedRouteQuoterV1Address) { + memo[chainId] = mixedRouteQuoterV1Address } return memo }, {})