mirror of
https://github.com/bisq-network/bisq.git
synced 2025-03-13 11:09:10 +01:00
Add check that price is not 0.
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
c6a8d82e64
commit
892db99dcb
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ public class BurningManAccountingService implements DaoSetupService, DaoStateLis
|
||||||
Date month = balanceEntry.getMonth();
|
Date month = balanceEntry.getMonth();
|
||||||
long receivedBtc = balanceEntry.getAmount();
|
long receivedBtc = balanceEntry.getAmount();
|
||||||
Price price = averageBsqPriceByMonth.get(month);
|
Price price = averageBsqPriceByMonth.get(month);
|
||||||
if (price == null) {
|
if (price == null || price.getValue() == 0) {
|
||||||
return OptionalLong.empty();
|
return OptionalLong.empty();
|
||||||
}
|
}
|
||||||
long volume = price.getVolumeByAmount(Coin.valueOf(receivedBtc)).getValue();
|
long volume = price.getVolumeByAmount(Coin.valueOf(receivedBtc)).getValue();
|
||||||
|
|
Loading…
Add table
Reference in a new issue