summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/withdraw.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-09-01 23:01:44 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-09-01 23:01:44 +0530
commit38e6d519461cff32107b5eebfc217fd9276960db (patch)
treeacae414baba420cfbb859af63c00370cc0baf3d1 /packages/taler-wallet-core/src/operations/withdraw.ts
parent5f3d9835fa1d6174da87da3882221d186f5df1b6 (diff)
downloadwallet-core-38e6d519461cff32107b5eebfc217fd9276960db.tar.gz
wallet-core-38e6d519461cff32107b5eebfc217fd9276960db.tar.bz2
wallet-core-38e6d519461cff32107b5eebfc217fd9276960db.zip
estimate refresh output, show correct(er) balance
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index c68f1521f..c719f7ab8 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -67,7 +67,11 @@ import { encodeCrock } from "../crypto/talerCrypto";
const logger = new Logger("withdraw.ts");
-function isWithdrawableDenom(d: DenominationRecord): boolean {
+/**
+ * Check if a denom is withdrawable based on the expiration time
+ * and revocation state.
+ */
+export function isWithdrawableDenom(d: DenominationRecord): boolean {
const now = getTimestampNow();
const started = timestampCmp(now, d.stampStart) >= 0;
const lastPossibleWithdraw = timestampSubtractDuraction(