aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/deposits.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/deposits.ts')
-rw-r--r--packages/taler-wallet-core/src/deposits.ts12
1 files changed, 2 insertions, 10 deletions
diff --git a/packages/taler-wallet-core/src/deposits.ts b/packages/taler-wallet-core/src/deposits.ts
index e24401ed6..50f26ea9c 100644
--- a/packages/taler-wallet-core/src/deposits.ts
+++ b/packages/taler-wallet-core/src/deposits.ts
@@ -110,7 +110,6 @@ import {
parseTransactionIdentifier,
} from "./transactions.js";
import { WalletExecutionContext, getDenomInfo } from "./wallet.js";
-import { getCandidateWithdrawalDenomsTx } from "./withdraw.js";
/**
* Logger.
@@ -1712,19 +1711,12 @@ async function getTotalFeesForDepositAmount(
}
coinFee.push(Amounts.parseOrThrow(denom.feeDeposit));
exchangeSet.add(pcs[i].exchangeBaseUrl);
-
- const allDenoms = await getCandidateWithdrawalDenomsTx(
+ const amountLeft = Amounts.sub(denom.value, pcs[i].contribution).amount;
+ const refreshCost = await getTotalRefreshCost(
wex,
tx,
- pcs[i].exchangeBaseUrl,
- currency,
- );
- const amountLeft = Amounts.sub(denom.value, pcs[i].contribution).amount;
- const refreshCost = getTotalRefreshCost(
- allDenoms,
denom,
amountLeft,
- wex.ws.config.testing.denomselAllowLate,
);
refreshFee.push(refreshCost);
}