From 1cbf67872bddad535e7fd1f2978be9f475f5d1b1 Mon Sep 17 00:00:00 2001 From: Moody Salem Date: Wed, 13 May 2020 13:37:06 -0400 Subject: [PATCH] Remove pair that is no longer used from the exchange page --- src/components/ExchangePage/index.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/components/ExchangePage/index.tsx b/src/components/ExchangePage/index.tsx index 79006331b1..0e7f97f778 100644 --- a/src/components/ExchangePage/index.tsx +++ b/src/components/ExchangePage/index.tsx @@ -17,7 +17,6 @@ import { ROUTER_ADDRESS } from '../../constants' import { useTokenAllowance } from '../../data/Allowances' import { useAddressBalance, useAllBalances } from '../../contexts/Balances' import { useAddUserToken, useFetchTokenByAddress } from '../../state/user/hooks' -import { usePair } from '../../data/Reserves' import { useAllTokens, useToken } from '../../contexts/Tokens' import { useHasPendingApproval, useTransactionAdder } from '../../state/transactions/hooks' import { useTokenContract, useWeb3React } from '../../hooks' @@ -174,8 +173,6 @@ function ExchangePage({ sendingInput = false, history, params }: ExchangePagePro } } - const pair = usePair(tokens[Field.INPUT], tokens[Field.OUTPUT]) - const bestTradeExactIn = useTradeExactIn( tradeType === TradeType.EXACT_INPUT ? parsedAmounts[independentField] : null, tokens[Field.OUTPUT] @@ -973,7 +970,6 @@ function ExchangePage({ sendingInput = false, history, params }: ExchangePagePro atMax={atMaxAmountInput} token={tokens[Field.INPUT]} onTokenSelection={address => _onTokenSelect(address)} - pair={pair} hideBalance={true} hideInput={true} showSendWithSwap={true} @@ -1017,7 +1013,6 @@ function ExchangePage({ sendingInput = false, history, params }: ExchangePagePro value={formattedAmounts[Field.INPUT]} atMax={atMaxAmountInput} token={tokens[Field.INPUT]} - pair={pair} advanced={advanced} onUserInput={onUserInput} onMax={() => { @@ -1067,7 +1062,6 @@ function ExchangePage({ sendingInput = false, history, params }: ExchangePagePro atMax={atMaxAmountOutput} token={tokens[Field.OUTPUT]} onTokenSelection={address => onTokenSelection(Field.OUTPUT, address)} - pair={pair} advanced={advanced} otherSelectedTokenAddress={tokens[Field.INPUT]?.address} inputId="swapOutputField"