diff options
author | Florian Dold <florian@dold.me> | 2024-03-07 11:33:41 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-03-07 11:33:41 +0100 |
commit | 5ca3c7878da9a495c67ea7faed91c8dbce04e603 (patch) | |
tree | 2a194e94bba1415f4504f119bd3beb0ad33d4c81 /packages/taler-wallet-core/src/coinSelection.ts | |
parent | 466e2b7643692aa6b7f76a193b84775008e17350 (diff) | |
download | wallet-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.ts | 10 |
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, + ), }; } |