From 7dc06d5ac14e61a89504f6d2b17bdee0aa31460b Mon Sep 17 00:00:00 2001 From: Jack Short Date: Mon, 12 Feb 2024 13:31:20 -0500 Subject: [PATCH] chore: updating factory addresses to match v2-sdk (#115) --- src/addresses.ts | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/addresses.ts b/src/addresses.ts index a443c49a..2c160a23 100644 --- a/src/addresses.ts +++ b/src/addresses.ts @@ -32,16 +32,22 @@ export const UNI_ADDRESSES: AddressMap = constructSameAddressMap('0x1f9840a85d5a export const UNISWAP_NFT_AIRDROP_CLAIM_ADDRESS = '0x8B799381ac40b838BBA4131ffB26197C432AFe78' +/** + * @deprecated use V2_FACTORY_ADDRESSES instead + */ export const V2_FACTORY_ADDRESS = '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f' -export const V2_FACTORY_ADDRESSES: AddressMap = constructSameAddressMap(V2_FACTORY_ADDRESS, [ - ChainId.POLYGON, - ChainId.OPTIMISM, - ChainId.CELO, - ChainId.ARBITRUM_ONE, - ChainId.BNB, - ChainId.AVALANCHE, - ChainId.BASE -]) +export const V2_FACTORY_ADDRESSES: AddressMap = { + [ChainId.MAINNET]: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f', + [ChainId.GOERLI]: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f', + [ChainId.SEPOLIA]: '0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f', + [ChainId.OPTIMISM]: '0x0c3c1c532F1e39EdF36BE9Fe0bE1410313E074Bf', + [ChainId.ARBITRUM_ONE]: '0xf1D7CC64Fb4452F05c498126312eBE29f30Fbcf9', + [ChainId.AVALANCHE]: '0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C', + [ChainId.BASE]: '0x8909dc15e40173ff4699343b6eb8132c65e18ec6', + [ChainId.BNB]: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6', + [ChainId.POLYGON]: '0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C', + [ChainId.CELO]: '0x79a530c8e2fA8748B7B40dd3629C0520c2cCf03f' +} /** * @deprecated use V2_ROUTER_ADDRESSES instead */