aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/withdraw.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-16 22:18:24 +0200
committerFlorian Dold <florian@dold.me>2022-10-16 22:18:24 +0200
commitb52b074a8dd119347307f1face35c1c60eb94c44 (patch)
treefb2f9597eaeb95f85c994949cfee0424307bb71e /packages/taler-wallet-core/src/operations/withdraw.ts
parent8d4a7d6103032a85c81240d9fb0de32dd44ec435 (diff)
downloadwallet-core-b52b074a8dd119347307f1face35c1c60eb94c44.tar.xz
wallet-core: show instructed amount as raw amount for withdrawal
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/withdraw.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts
index 59863101a..6be7c7614 100644
--- a/packages/taler-wallet-core/src/operations/withdraw.ts
+++ b/packages/taler-wallet-core/src/operations/withdraw.ts
@@ -932,6 +932,7 @@ async function queryReserve(
return;
}
wg.status = WithdrawalGroupStatus.Ready;
+ wg.reserveBalanceAmount = Amounts.parse(result.response.balance);
await tx.withdrawalGroups.put(wg);
});
@@ -1700,6 +1701,7 @@ export async function internalCreateWithdrawalGroup(
instructedAmount: amount,
timestampStart: now,
rawWithdrawalAmount: initialDenomSel.totalWithdrawCost,
+ effectiveWithdrawalAmount: initialDenomSel.totalCoinValue,
secretSeed,
reservePriv: reserveKeyPair.priv,
reservePub: reserveKeyPair.pub,