From 92f1b5928c764b3af12a29b97bbc3e434a82b1b0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 5 Jan 2023 18:45:49 +0100 Subject: wallet-core: implement insufficient balance details For now, only for merchant payments --- packages/taler-wallet-core/src/util/coinSelection.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/taler-wallet-core/src/util') diff --git a/packages/taler-wallet-core/src/util/coinSelection.ts b/packages/taler-wallet-core/src/util/coinSelection.ts index cadf8d829..0bd624bf7 100644 --- a/packages/taler-wallet-core/src/util/coinSelection.ts +++ b/packages/taler-wallet-core/src/util/coinSelection.ts @@ -117,6 +117,8 @@ export interface CoinSelectionTally { customerWireFees: AmountJson; wireFeeCoveredForExchange: Set; + + lastDepositFee: AmountJson; } /** @@ -188,5 +190,6 @@ export function tallyFees( customerDepositFees, customerWireFees, wireFeeCoveredForExchange, + lastDepositFee: feeDeposit, }; } -- cgit v1.2.3