Skip to content

Commit

Permalink
unwrapped token is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed May 21, 2021
1 parent eff512d commit 679a58d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/state/mint/hooks.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 679a58d

Please sign in to comment.