From 89a99e5861e5725802d977a9b5a9ff260cf96dac Mon Sep 17 00:00:00 2001 From: peachbits Date: Tue, 25 Feb 2025 17:29:43 -0800 Subject: [PATCH] fixup! Use currency from token networkLocation as-is --- src/swap/defi/xrpDex.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/swap/defi/xrpDex.ts b/src/swap/defi/xrpDex.ts index 03a2c221..311640d3 100644 --- a/src/swap/defi/xrpDex.ts +++ b/src/swap/defi/xrpDex.ts @@ -97,7 +97,7 @@ const fetchSwapQuoteInner = async ( const volatilitySpread: number = VOLATILITY_SPREAD_DEFAULT let fromIssuer: string | undefined - let fromCurrency: string = fromCurrencyCode + let fromCurrency: string = fromWallet.currencyInfo.currencyCode if (fromTokenId != null) { const fromToken = fromWallet.currencyConfig.allTokens[fromTokenId] const fromTokenNetworkLocation = asXrpNetworkLocation( @@ -108,7 +108,7 @@ const fetchSwapQuoteInner = async ( } let toIssuer: string | undefined - let toCurrency: string = toCurrencyCode + let toCurrency: string = toWallet.currencyInfo.currencyCode if (toTokenId != null) { const toToken = toWallet.currencyConfig.allTokens[toTokenId] const toTokenNetworkLocation = asXrpNetworkLocation(toToken.networkLocation)