aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index bc3cd59fc..4c44b5d24 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -1377,6 +1377,14 @@ export class Wallet {
let {isTrusted, isAudited} = await this.getExchangeTrust(exchangeInfo);
+ let earliestDepositExpiration = Infinity;;
+ for (let denom of selectedDenoms) {
+ let expireDeposit = getTalerStampSec(denom.stampExpireDeposit)!;
+ if (expireDeposit < earliestDepositExpiration) {
+ earliestDepositExpiration = expireDeposit;
+ }
+ }
+
let ret: ReserveCreationInfo = {
exchangeInfo,
selectedDenoms,
@@ -1385,6 +1393,7 @@ export class Wallet {
isAudited,
isTrusted,
withdrawFee: acc,
+ earliestDepositExpiration,
overhead: Amounts.sub(amount, actualCoinCost).amount,
};
return ret;