unwrapped token is not needed

This commit is contained in:
Moody Salem 2021-05-21 09:39:32 -05:00
parent eff512deb8
commit 679a58daf4
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB

@ -1,6 +1,5 @@
import { useCallback, useMemo } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { unwrappedToken } from '../../utils/unwrappedToken'
import { AppDispatch, AppState } from '../index'
import { Field, typeInput } from './actions'
import { Pair } from '@uniswap/v2-sdk'
@ -122,7 +121,7 @@ export function useDerivedMintInfo(
? pair.priceOf(tokenA).quote(wrappedIndependentAmount)
: pair.priceOf(tokenB).quote(wrappedIndependentAmount)
return dependentCurrency?.isNative
? CurrencyAmount.fromRawAmount(unwrappedToken(dependentCurrency), dependentTokenAmount.quotient)
? CurrencyAmount.fromRawAmount(dependentCurrency, dependentTokenAmount.quotient)
: dependentTokenAmount
}
return undefined