gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 02/03: filter out exchanges with other currency when


From: gnunet
Subject: [taler-wallet-core] 02/03: filter out exchanges with other currency when doing currency selection for deposit
Date: Mon, 10 Jan 2022 20:07:41 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

commit 83b9d32b7812e63640a60b5b42a27c96d8053bce
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Jan 10 15:08:45 2022 -0300

    filter out exchanges with other currency when doing currency selection for 
deposit
---
 packages/taler-wallet-core/src/operations/deposits.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-core/src/operations/deposits.ts 
b/packages/taler-wallet-core/src/operations/deposits.ts
index 6d28c23e..0a90e021 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({

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]