unwrapped token is not needed
This commit is contained in:
parent
eff512deb8
commit
679a58daf4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user