Use proper divisibility for payments in crowdfund and do not show tooltip if identical data

fixes #1037 and fixes #1003
This commit is contained in:
Kukks
2020-02-28 12:51:15 +01:00
parent 18aaa1a0c4
commit c607696230
4 changed files with 23 additions and 17 deletions

View File

@@ -153,6 +153,10 @@ namespace BTCPayServer.Services.Apps
Sounds = settings.Sounds,
AnimationColors = settings.AnimationColors,
CurrencyData = _Currencies.GetCurrencyData(settings.TargetCurrency, true),
CurrencyDataPayments = currentPayments.Select(pair => pair.Key)
.Concat(pendingPayments.Select(pair => pair.Key)).Distinct()
.Select(id => _Currencies.GetCurrencyData(id.CryptoCode, true))
.ToDictionary(data => data.Code, data => data),
Info = new ViewCrowdfundViewModel.CrowdfundInfo()
{
TotalContributors = paidInvoices.Length,