@@ -4,13 +4,13 @@ import * as React from 'react'
44
55import { useHandler } from '../../hooks/useHandler'
66import { lstrings } from '../../locales/strings'
7+ import { getExchangeDenom } from '../../selectors/DenominationSelectors'
78import { useState } from '../../types/reactHooks'
89import { useSelector } from '../../types/reactRedux'
910import type { EdgeAppSceneProps , NavigationBase } from '../../types/routerTypes'
1011import { getWalletName } from '../../util/CurrencyWalletHelpers'
1112import {
1213 fetchHoudiniPrivateQuote ,
13- getPrimaryMultiplier ,
1414 HOUDINI_DESTINATION_ASSETS ,
1515 HOUDINI_DESTINATION_EDGE_ASSETS ,
1616 type HoudiniDestinationAsset ,
@@ -169,10 +169,10 @@ export const HoudiniPrivateSendScene: React.FC<Props> = props => {
169169 }
170170 setPending ( true )
171171 try {
172- const fromMultiplier = getPrimaryMultiplier (
172+ const fromMultiplier = getExchangeDenom (
173173 fromWallet . currencyConfig ,
174174 fromTokenId
175- )
175+ ) . multiplier
176176 const nativeAmount = round ( mul ( displayAmount , fromMultiplier ) , 0 )
177177
178178 const quote = await fetchHoudiniPrivateQuote ( account , {
@@ -185,7 +185,10 @@ export const HoudiniPrivateSendScene: React.FC<Props> = props => {
185185 } )
186186
187187 const toConfig = account . currencyConfig [ destAsset . pluginId ]
188- const toMultiplier = getPrimaryMultiplier ( toConfig , destAsset . tokenId )
188+ const toMultiplier = getExchangeDenom (
189+ toConfig ,
190+ destAsset . tokenId
191+ ) . multiplier
189192 const fromDisplay = div ( quote . fromNativeAmount , fromMultiplier , 8 )
190193 const toDisplay = div ( quote . toNativeAmount , toMultiplier , 8 )
191194
0 commit comments