Skip to content

Commit

Permalink
CR: update
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Nov 18, 2024
1 parent 31be148 commit 8aa4532
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {atomicFormatter} from '@yoroi/common'
import {atomicBreakdown} from '@yoroi/common'
import {useCreateReferralLink, useExchange, useExchangeProvidersByOrderType} from '@yoroi/exchange'
import {linksYoroiModuleMaker} from '@yoroi/links'
import {useTheme} from '@yoroi/theme'
Expand All @@ -12,7 +12,6 @@ import {Icon} from '../../../../components/Icon'
import {KeyboardAvoidingView} from '../../../../components/KeyboardAvoidingView/KeyboardAvoidingView'
import {useModal} from '../../../../components/Modal/ModalContext'
import {banxaTestWallet} from '../../../../kernel/env'
import {decimalDot} from '../../../../kernel/i18n/languages'
import {useMetrics} from '../../../../kernel/metrics/metricsManager'
import {useWalletNavigation} from '../../../../kernel/navigation'
import {delay} from '../../../../yoroi-wallets/utils/timeUtils'
Expand Down Expand Up @@ -58,9 +57,7 @@ export const CreateExchangeOrderScreen = () => {
const {height: deviceHeight} = useWindowDimensions()

const quantity = BigInt(amount.value)
const orderAmount = Number(
atomicFormatter({value: quantity, decimalPlaces: wallet.portfolioPrimaryTokenInfo.decimals, format: decimalDot}),
)
const orderAmount = atomicBreakdown(quantity, wallet.portfolioPrimaryTokenInfo.decimals).bn.toNumber()
const returnUrl = encodeURIComponent(
linksYoroiModuleMaker('yoroi').exchange.order.showCreateResult({
provider: providerSelected?.id ?? '',
Expand Down

0 comments on commit 8aa4532

Please sign in to comment.