From 9d87e30da0b491a1b12e5145d549968834ae55a8 Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 9 Mar 2023 13:55:48 -0500 Subject: [PATCH] fixed price offer in legacy ui does not set market price margin --- .../java/haveno/desktop/main/offer/MutableOfferDataModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/src/main/java/haveno/desktop/main/offer/MutableOfferDataModel.java b/desktop/src/main/java/haveno/desktop/main/offer/MutableOfferDataModel.java index 79d793cc63..4902fa3fd5 100644 --- a/desktop/src/main/java/haveno/desktop/main/offer/MutableOfferDataModel.java +++ b/desktop/src/main/java/haveno/desktop/main/offer/MutableOfferDataModel.java @@ -290,7 +290,7 @@ public abstract class MutableOfferDataModel extends OfferDataModel { minAmount.get(), useMarketBasedPrice.get() ? null : price.get(), useMarketBasedPrice.get(), - marketPriceMargin, + useMarketBasedPrice.get() ? marketPriceMargin : 0, buyerSecurityDepositPct.get(), paymentAccount); }