From 772e547af6249ca4f189c67d70bbcdf04be5ce73 Mon Sep 17 00:00:00 2001 From: jorbuedo Date: Wed, 11 Oct 2023 13:22:40 +0200 Subject: [PATCH] Update design --- .../SelectPool/SelectPoolFromList/SelectPoolFromList.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/wallet-mobile/src/features/Swap/common/SelectPool/SelectPoolFromList/SelectPoolFromList.tsx b/apps/wallet-mobile/src/features/Swap/common/SelectPool/SelectPoolFromList/SelectPoolFromList.tsx index d2a958a555..920cb9efe6 100644 --- a/apps/wallet-mobile/src/features/Swap/common/SelectPool/SelectPoolFromList/SelectPoolFromList.tsx +++ b/apps/wallet-mobile/src/features/Swap/common/SelectPool/SelectPoolFromList/SelectPoolFromList.tsx @@ -32,6 +32,8 @@ export const SelectPoolFromList = ({pools = []}: Props) => { const sellTokenInfo = useTokenInfo({wallet, tokenId: orderData.amounts.sell.tokenId}) const buyTokenInfo = useTokenInfo({wallet, tokenId: orderData.amounts.buy.tokenId}) const denomination = (sellTokenInfo.decimals ?? 0) - (buyTokenInfo.decimals ?? 0) + const tokenToSellName = sellTokenInfo.ticker ?? sellTokenInfo.name + const tokenToBuyName = buyTokenInfo.ticker ?? buyTokenInfo.name const handleOnPoolSelection = (pool: Swap.Pool) => { track.swapPoolChanged() @@ -75,14 +77,14 @@ export const SelectPoolFromList = ({pools = []}: Props) => { - {strings.price} + {strings.marketPrice} - {Quantities.format( + {`${Quantities.format( getMarketPrice(pool, orderData.amounts.sell) ?? Quantities.zero, denomination, PRECISION, - )} + )} ${tokenToSellName}/${tokenToBuyName}`}