BTCWallet is single currency, introduce BTCWalletProvider

This commit is contained in:
nicolas.dorier
2018-01-11 14:36:12 +09:00
parent 3ff293ab7f
commit 55d50af39d
8 changed files with 146 additions and 68 deletions

View File

@@ -165,7 +165,7 @@ namespace BTCPayServer.Controllers
}).ToList()
};
var isMultiCurrency = invoice.Payments.Select(p=>p.GetCryptoCode()).Concat(new[] { network.CryptoCode }).Distinct().Count() > 1;
var isMultiCurrency = invoice.GetPayments().Select(p=>p.GetCryptoCode()).Concat(new[] { network.CryptoCode }).Distinct().Count() > 1;
if (isMultiCurrency)
model.NetworkFeeDescription = $"{accounting.NetworkFee} {network.CryptoCode}";