diff --git a/apps/wallet-mobile/src/features/Swap/useCases/ConfirmTxScreen/TransactionSummary.tsx b/apps/wallet-mobile/src/features/Swap/useCases/ConfirmTxScreen/TransactionSummary.tsx index 70d22163f9..968cbc335e 100644 --- a/apps/wallet-mobile/src/features/Swap/useCases/ConfirmTxScreen/TransactionSummary.tsx +++ b/apps/wallet-mobile/src/features/Swap/useCases/ConfirmTxScreen/TransactionSummary.tsx @@ -93,11 +93,7 @@ export const TransactionSummary = () => { label: strings.swapMinReceivedTitle, value: ( - {priceImpactRisk === 'high' && } - - - {minReceivedInfoValue} - + {minReceivedInfoValue} ), }, diff --git a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditPool/ShowPoolActions.tsx b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditPool/ShowPoolActions.tsx index 7f26d7041a..6c81d37862 100644 --- a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditPool/ShowPoolActions.tsx +++ b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditPool/ShowPoolActions.tsx @@ -9,7 +9,6 @@ import {useSelectedWallet} from '../../../../../../SelectedWallet' import {COLORS} from '../../../../../../theme' import {useTokenInfo} from '../../../../../../yoroi-wallets/hooks' import {Quantities} from '../../../../../../yoroi-wallets/utils' -import {getPriceImpactRisk, usePriceImpactRiskTheme} from '../../../../common/helpers' import {useNavigateTo} from '../../../../common/navigation' import {PoolIcon} from '../../../../common/PoolIcon/PoolIcon' import {useStrings} from '../../../../common/strings' @@ -176,11 +175,6 @@ const ShowMarketOrderFeeBreakdown = ({totalFees}: {totalFees: string}) => { const sellTokenInfo = useTokenInfo({wallet, tokenId: amounts.sell.tokenId}) const buyTokenName = buyTokenInfo.ticker ?? buyTokenInfo.name const sellTokenName = sellTokenInfo.ticker ?? sellTokenInfo.name - const priceImpact = calculation?.prices.priceImpact - - const priceImpactRisk = getPriceImpactRisk(Number(priceImpact)) - const priceImpactRiskTheme = usePriceImpactRiskTheme(priceImpactRisk) - const priceImpactRiskTextColor = priceImpactRiskTheme.text // should not happen if (!calculation) return <> @@ -211,7 +205,7 @@ const ShowMarketOrderFeeBreakdown = ({totalFees}: {totalFees: string}) => { }, { label: strings.swapMinReceivedTitle, - value: {minReceivedFormatted}, + value: minReceivedFormatted, info: strings.swapMinReceived, }, {