Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeki committed Feb 21, 2024
1 parent e397492 commit c981933
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/entities/pair.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BigNumber } from '@ethersproject/bignumber'
import { ChainId, CurrencyAmount, Price, Token, WETH9 } from '@uniswap/sdk-core'
import { FACTORY_ADDRESS } from '../constants'
import { InsufficientInputAmountError } from '../errors'
import { computePairAddress, Pair } from './pair'
import {BigNumber} from '@ethersproject/bignumber'
import {ChainId, CurrencyAmount, Price, Token, WETH9} from '@uniswap/sdk-core'
import {FACTORY_ADDRESS} from '../constants'
import {InsufficientInputAmountError} from '../errors'
import {computePairAddress, Pair} from './pair'

describe('computePairAddress', () => {
it('should correctly compute the pool address', () => {
Expand Down Expand Up @@ -60,7 +60,11 @@ describe('Pair', () => {
})

it('returns the default address for a testnet not in the map', () => {
expect(Pair.getAddress(USDC_SEPOLIA, DAI_SEPOLIA)).toEqual(FACTORY_ADDRESS)
expect(Pair.getAddress(USDC_SEPOLIA, DAI_SEPOLIA)).toEqual(computePairAddress({
factoryAddress: FACTORY_ADDRESS,
tokenA: USDC_SEPOLIA,
tokenB: DAI_SEPOLIA
}))
})
})

Expand Down

0 comments on commit c981933

Please sign in to comment.