From 799c863b3e9ff4e1965e8be862429ad401424377 Mon Sep 17 00:00:00 2001 From: Martin Grabina Date: Tue, 16 Dec 2025 10:50:27 -0300 Subject: [PATCH] fix: show spot correctly in inverted quotes --- src/components/transactions/Swap/helpers/cow/rates.helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/transactions/Swap/helpers/cow/rates.helpers.ts b/src/components/transactions/Swap/helpers/cow/rates.helpers.ts index 695ba80609..06cf2b7f4f 100644 --- a/src/components/transactions/Swap/helpers/cow/rates.helpers.ts +++ b/src/components/transactions/Swap/helpers/cow/rates.helpers.ts @@ -198,8 +198,8 @@ export async function getCowProtocolSellRates({ .toString(); const destSpotAmount = side === 'sell' - ? orderBookQuote.quoteResults.amountsAndCosts.beforeNetworkCosts.sellAmount.toString() - : orderBookQuote.quoteResults.amountsAndCosts.afterNetworkCosts.sellAmount.toString(); + ? orderBookQuote.quoteResults.amountsAndCosts.afterNetworkCosts.sellAmount.toString() + : orderBookQuote.quoteResults.amountsAndCosts.beforeNetworkCosts.sellAmount.toString(); const destSpotUSD = BigNumber(srcTokenPriceUsd) .multipliedBy(BigNumber(destSpotAmount).dividedBy(10 ** srcDecimals)) .toString();