From 281e61391f640a7bbcfa7720f897615046754b21 Mon Sep 17 00:00:00 2001 From: NeOMakinG <14963751+NeOMakinG@users.noreply.github.com> Date: Wed, 8 Jan 2025 06:11:47 +0800 Subject: [PATCH] fix: confirm screen shows wrong buyAsset (#8495) * fix: confirm screen buyAsset * fix: new trede flow * chore: trigger ci --- .../components/MultiHopTradeConfirm/MultiHopTradeConfirm.tsx | 2 +- .../MultiHopTrade/components/TradeConfirm/TradeConfirm.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MultiHopTrade/components/MultiHopTradeConfirm/MultiHopTradeConfirm.tsx b/src/components/MultiHopTrade/components/MultiHopTradeConfirm/MultiHopTradeConfirm.tsx index ade8909ffa1..2d217a2dab6 100644 --- a/src/components/MultiHopTrade/components/MultiHopTradeConfirm/MultiHopTradeConfirm.tsx +++ b/src/components/MultiHopTrade/components/MultiHopTradeConfirm/MultiHopTradeConfirm.tsx @@ -146,7 +146,7 @@ export const MultiHopTradeConfirm = memo(() => { isArbitrumBridgeWithdraw ? 'bridge.arbitrum.success.tradeSuccess' : undefined } sellAsset={activeQuote?.steps[0].sellAsset} - buyAsset={activeQuote?.steps[0].buyAsset} + buyAsset={lastHop.buyAsset} sellAmountCryptoPrecision={fromBaseUnit( activeQuote.steps[0].sellAmountIncludingProtocolFeesCryptoBaseUnit, activeQuote.steps[0].sellAsset.precision, diff --git a/src/components/MultiHopTrade/components/TradeConfirm/TradeConfirm.tsx b/src/components/MultiHopTrade/components/TradeConfirm/TradeConfirm.tsx index 7805e13730c..cb61b255d10 100644 --- a/src/components/MultiHopTrade/components/TradeConfirm/TradeConfirm.tsx +++ b/src/components/MultiHopTrade/components/TradeConfirm/TradeConfirm.tsx @@ -87,7 +87,7 @@ export const TradeConfirm = () => { isArbitrumBridgeWithdraw ? 'bridge.arbitrum.success.tradeSuccess' : undefined } sellAsset={activeQuote?.steps[0].sellAsset} - buyAsset={activeQuote?.steps[0].buyAsset} + buyAsset={tradeQuoteLastHop.buyAsset} sellAmountCryptoPrecision={fromBaseUnit( activeQuote.steps[0].sellAmountIncludingProtocolFeesCryptoBaseUnit, activeQuote.steps[0].sellAsset.precision,