diff options
author | Sebastian <sebasjm@gmail.com> | 2022-05-03 00:34:37 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-05-03 00:34:37 -0300 |
commit | b4e219f7ff99f62d563b106c1add4c5744680b1c (patch) | |
tree | 967ce5b181b3e027bf1332354096c0aa93cceac6 | |
parent | dc842eab6b7a3b2e891ee89a325ec73e04d3be95 (diff) |
add missing allowedExchanges for calculating getFeeForDeposit
-rw-r--r-- | packages/taler-wallet-core/src/operations/deposits.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/deposits.ts b/packages/taler-wallet-core/src/operations/deposits.ts index 15c0e3110..2f5f9aa15 100644 --- a/packages/taler-wallet-core/src/operations/deposits.ts +++ b/packages/taler-wallet-core/src/operations/deposits.ts @@ -337,7 +337,10 @@ export async function getFeeForDeposit( const csr: CoinSelectionRequest = { allowedAuditors: [], - allowedExchanges: [], + allowedExchanges: Object.values(exchangeInfos).map(v => ({ + exchangeBaseUrl: v.url, + exchangePub: v.master_pub + })), amount: Amounts.parseOrThrow(req.amount), maxDepositFee: Amounts.parseOrThrow(req.amount), maxWireFee: Amounts.parseOrThrow(req.amount), |