Skip to content

Commit f0b9f99

Browse files
committed
feat(GROWUX-1902): change blockchain fee to input instead of output
1 parent 0363e8c commit f0b9f99

File tree

1 file changed

+7
-7
lines changed
  • packages/blockchain-wallet-v4-frontend/src/scenes/Dex/Swap/components/QuoteDetails

1 file changed

+7
-7
lines changed

packages/blockchain-wallet-v4-frontend/src/scenes/Dex/Swap/components/QuoteDetails/QuoteDetails.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,15 @@ export const QuoteDetails = ({
139139
<Text color={SemanticColors.title} variant='paragraph2'>
140140
~
141141
{Exchange.convertCoinToCoin({
142-
coin: props.swapQuote.quote.buyAmount.symbol,
143-
value: (props.swapQuote.quote.buyAmount.amount / 100) * 0.9
142+
coin: props.swapQuote.quote.sellAmount.symbol,
143+
value: (props.swapQuote.quote.sellAmount.amount / 100) * 0.9
144144
})}{' '}
145-
{props.swapQuote.quote.buyAmount.symbol}
145+
{props.swapQuote.quote.sellAmount.symbol}
146146
</Text>
147147
<Flex>
148148
~
149149
<FiatDisplay
150-
coin={props.swapQuote.quote.buyAmount.symbol}
150+
coin={props.swapQuote.quote.sellAmount.symbol}
151151
currency={walletCurrency}
152152
color='grey700'
153153
lineHeight='150%'
@@ -157,10 +157,10 @@ export const QuoteDetails = ({
157157
>
158158
{Exchange.convertCoinToCoin({
159159
baseToStandard: false,
160-
coin: props.swapQuote.quote.buyAmount.symbol,
160+
coin: props.swapQuote.quote.sellAmount.symbol,
161161
value: Exchange.convertCoinToCoin({
162-
coin: props.swapQuote.quote.buyAmount.symbol,
163-
value: (props.swapQuote.quote.buyAmount.amount / 100) * 0.9
162+
coin: props.swapQuote.quote.sellAmount.symbol,
163+
value: (props.swapQuote.quote.sellAmount.amount / 100) * 0.9
164164
})
165165
})}
166166
</FiatDisplay>

0 commit comments

Comments
 (0)