aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/deposits.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-03-31 14:50:59 -0300
committerSebastian <sebasjm@gmail.com>2023-03-31 14:50:59 -0300
commitb08bb05a40ac42399bae12d65af4c5489c216786 (patch)
tree207fd85850e2fa2c11211c3345f60057c5afb405 /packages/taler-wallet-core/src/operations/deposits.ts
parenta8d30ef0f91cd7d36a30aeaad1d2df98d444692e (diff)
save wire fee instead of effective amount
Diffstat (limited to 'packages/taler-wallet-core/src/operations/deposits.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/deposits.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/deposits.ts b/packages/taler-wallet-core/src/operations/deposits.ts
index 64217acab..47efbb213 100644
--- a/packages/taler-wallet-core/src/operations/deposits.ts
+++ b/packages/taler-wallet-core/src/operations/deposits.ts
@@ -234,12 +234,11 @@ export async function processDepositGroup(
);
const raw = Amounts.parseOrThrow(track.coin_contribution);
const wireFee = Amounts.parseOrThrow(fee.wireFee);
- const effective = Amounts.sub(raw, wireFee).amount;
newWiredTransaction = {
value: {
amountRaw: Amounts.stringify(raw),
- amountEffective: Amounts.stringify(effective),
+ wireFee: Amounts.stringify(wireFee),
exchangePub: track.exchange_pub,
timestampExecuted: track.execution_time,
wireTransferId: track.wtid,