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)