Skip to content

Commit

Permalink
fixup! Use currency from token networkLocation as-is
Browse files Browse the repository at this point in the history
  • Loading branch information
peachbits committed Feb 26, 2025
1 parent 3efa324 commit 89a99e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swap/defi/xrpDex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)
Expand Down

0 comments on commit 89a99e5

Please sign in to comment.