diff --git a/packages/taler-wallet-core/src/operations/deposits.ts b/packages/taler-wallet-core/src/operations/deposits.ts index 6d28c23e5..0a90e0216 100644 --- a/packages/taler-wallet-core/src/operations/deposits.ts +++ b/packages/taler-wallet-core/src/operations/deposits.ts @@ -367,7 +367,7 @@ export async function getFeeForDeposit( const allExchanges = await tx.exchanges.iter().toArray(); for (const e of allExchanges) { const details = await getExchangeDetails(tx, e.baseUrl); - if (!details) { + if (!details || amount.currency !== details.currency) { continue; } exchangeInfos.push({ @@ -461,7 +461,7 @@ export async function createDepositGroup( const allExchanges = await tx.exchanges.iter().toArray(); for (const e of allExchanges) { const details = await getExchangeDetails(tx, e.baseUrl); - if (!details) { + if (!details || amount.currency !== details.currency) { continue; } exchangeInfos.push({