add missing allowedExchanges for calculating getFeeForDeposit

This commit is contained in:
Sebastian 2022-05-03 00:34:37 -03:00
parent dc842eab6b
commit b4e219f7ff
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -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),