mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-25 15:29:23 -05:00
fix total amounts in spread view
This commit is contained in:
parent
113a94b1f9
commit
64acf86fbe
@ -230,9 +230,13 @@ class SpreadViewModel extends ActivatableViewModel {
|
||||
}
|
||||
}
|
||||
|
||||
for (Offer offer : offers) totalAmount = totalAmount.add(offer.getAmount());
|
||||
BigInteger totalAmountForCurrency = BigInteger.ZERO;
|
||||
for (Offer offer : offers) {
|
||||
totalAmount = totalAmount.add(offer.getAmount());
|
||||
totalAmountForCurrency = totalAmountForCurrency.add(offer.getAmount());
|
||||
}
|
||||
spreadItems.add(new SpreadItem(key, buyOffers.size(), sellOffers.size(),
|
||||
uniqueOffers.size(), spread, percentage, percentageValue, totalAmount));
|
||||
uniqueOffers.size(), spread, percentage, percentageValue, totalAmountForCurrency));
|
||||
}
|
||||
|
||||
maxPlacesForAmount.set(formatAmount(totalAmount, false).length());
|
||||
|
Loading…
Reference in New Issue
Block a user