diff --git a/package.json b/package.json index 8c228c94d..47c1a0eef 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "dependencies": { "@ethersproject/address": "^5.0.0", "@ethersproject/solidity": "^5.0.0", - "@uniswap/sdk-core": "^4.1.3", + "@uniswap/sdk-core": "^4.2.0", "tiny-invariant": "^1.1.0", "tiny-warning": "^1.0.3" }, diff --git a/src/entities/pair.test.ts b/src/entities/pair.test.ts index 45a41096d..56e23e5a9 100644 --- a/src/entities/pair.test.ts +++ b/src/entities/pair.test.ts @@ -1,6 +1,5 @@ import { BigNumber } from '@ethersproject/bignumber' -import { ChainId, CurrencyAmount, Price, Token, WETH9 } from '@uniswap/sdk-core' -import { FACTORY_ADDRESS } from '../constants' +import {ChainId, CurrencyAmount, Price, Token, V2_FACTORY_ADDRESSES, WETH9} from '@uniswap/sdk-core' import { InsufficientInputAmountError } from '../errors' import { computePairAddress, Pair } from './pair' @@ -62,7 +61,7 @@ describe('Pair', () => { it('returns the default address for a testnet not in the map', () => { expect(Pair.getAddress(USDC_SEPOLIA, DAI_SEPOLIA)).toEqual( computePairAddress({ - factoryAddress: FACTORY_ADDRESS, + factoryAddress: V2_FACTORY_ADDRESSES[ChainId.SEPOLIA], tokenA: USDC_SEPOLIA, tokenB: DAI_SEPOLIA }) diff --git a/yarn.lock b/yarn.lock index bbede29f4..0d1ed4993 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1706,10 +1706,10 @@ semver "^7.3.2" tsutils "^3.17.1" -"@uniswap/sdk-core@^4.1.3": - version "4.1.3" - resolved "https://registry.yarnpkg.com/@uniswap/sdk-core/-/sdk-core-4.1.3.tgz#5db8c527eee89ac2467fa327bd42f0f17aee76ac" - integrity sha512-dbXX4Ivam5D90gwiT0MWgHSiKdl99rC0GiPcK8Pd+iFp2myypPX9ovTR3IncI3Y83mZrlBLX9XC1Q6kA/12hOg== +"@uniswap/sdk-core@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@uniswap/sdk-core/-/sdk-core-4.2.0.tgz#9930f133baec9c1118d891ebf8fcba7f7efc153d" + integrity sha512-yXAMLHZRYYuh6KpN2nOlLTYBjGiopmI9WUB4Z0tyNkW4ZZub54cUt22eibpGbZAhRAMxclox9IPIs6wwrM3soQ== dependencies: "@ethersproject/address" "^5.0.2" big.js "^5.2.2"