Skip to content

Commit

Permalink
Don't ask for trade volume if non positive price, fix bisq-network#2925
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrm committed Jun 27, 2019
1 parent e13faba commit 632eb90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/bisq/core/trade/Trade.java
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,8 @@ public Date getTakeOfferDate() {

@Nullable
public Volume getTradeVolume() {
if (getTradeAmount() != null && getTradePrice() != null) {
if (getTradeAmount() != null && getTradePrice() != null &&
getTradePrice().getMonetary().getValue() > 0) {
Volume volumeByAmount = getTradePrice().getVolumeByAmount(getTradeAmount());
if (offer != null) {
if (offer.getPaymentMethod().getId().equals(PaymentMethod.HAL_CASH_ID))
Expand Down

0 comments on commit 632eb90

Please sign in to comment.