mirror of
https://github.com/boldsuck/haveno.git
synced 2025-01-03 14:49:25 +00:00
fix total amounts in spread view
This commit is contained in:
parent
113a94b1f9
commit
64acf86fbe
1 changed files with 6 additions and 2 deletions
|
@ -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(),
|
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());
|
maxPlacesForAmount.set(formatAmount(totalAmount, false).length());
|
||||||
|
|
Loading…
Reference in a new issue