diff options
author | Florian Dold <florian@dold.me> | 2023-02-23 15:52:32 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-23 15:52:32 +0100 |
commit | dd9e4555baf3b98478e9ad2b0edf81ea81add5e2 (patch) | |
tree | b3752c66dad17d10324080fac216c95f39a67871 /packages/taler-wallet-core/src/operations/pay-peer.ts | |
parent | 339080e014e2a94cf93bb8ef8d5fbe6793ee4c48 (diff) | |
download | wallet-core-dd9e4555baf3b98478e9ad2b0edf81ea81add5e2.tar.xz |
wallet-core: fixup for legacy peer-push-debit transaction
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay-peer.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay-peer.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-peer.ts b/packages/taler-wallet-core/src/operations/pay-peer.ts index 541e96280..6a04bce7c 100644 --- a/packages/taler-wallet-core/src/operations/pay-peer.ts +++ b/packages/taler-wallet-core/src/operations/pay-peer.ts @@ -1580,6 +1580,8 @@ export async function checkPeerPullPaymentInitiation( // Select an exchange where we have money in the specified currency // FIXME: How do we handle regional currency scopes here? Is it an additional input? + logger.trace("checking peer-pull-credit fees"); + const currency = Amounts.currencyOf(req.amount); let exchangeUrl; if (req.exchangeBaseUrl) { @@ -1592,6 +1594,8 @@ export async function checkPeerPullPaymentInitiation( throw Error("no exchange found for initiating a peer pull payment"); } + logger.trace(`found ${exchangeUrl} as preferred exchange`); + const wi = await getExchangeWithdrawalInfo( ws, exchangeUrl, @@ -1599,6 +1603,8 @@ export async function checkPeerPullPaymentInitiation( undefined, ); + logger.trace(`got withdrawal info`); + return { exchangeBaseUrl: exchangeUrl, amountEffective: wi.withdrawalAmountEffective, |