aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/coinSelection.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-03-07 11:33:41 +0100
committerFlorian Dold <florian@dold.me>2024-03-07 11:33:41 +0100
commit5ca3c7878da9a495c67ea7faed91c8dbce04e603 (patch)
tree2a194e94bba1415f4504f119bd3beb0ad33d4c81 /packages/taler-wallet-core/src/coinSelection.ts
parent466e2b7643692aa6b7f76a193b84775008e17350 (diff)
downloadwallet-core-5ca3c7878da9a495c67ea7faed91c8dbce04e603.tar.xz
wallet-core: simplify/improve insufficient balance details computation
Diffstat (limited to 'packages/taler-wallet-core/src/coinSelection.ts')
-rw-r--r--packages/taler-wallet-core/src/coinSelection.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/coinSelection.ts b/packages/taler-wallet-core/src/coinSelection.ts
index 695be79ac..87b29a998 100644
--- a/packages/taler-wallet-core/src/coinSelection.ts
+++ b/packages/taler-wallet-core/src/coinSelection.ts
@@ -425,6 +425,16 @@ export async function reportInsufficientBalanceDetails(
balanceExchangeDepositable: Amounts.stringify(
exchDet.balanceExchangeDepositable,
),
+ balanceAgeAcceptable: Amounts.stringify(exchDet.balanceAgeAcceptable),
+ balanceMerchantAcceptable: Amounts.stringify(
+ exchDet.balanceMerchantAcceptable,
+ ),
+ balanceMerchantDepositable: Amounts.stringify(
+ exchDet.balanceMerchantDepositable,
+ ),
+ maxEffectiveSpendAmount: Amounts.stringify(
+ exchDet.maxEffectiveSpendAmount,
+ ),
};
}