diff --git a/cli/src/main/java/bisq/cli/opts/CreateOfferOptionParser.java b/cli/src/main/java/bisq/cli/opts/CreateOfferOptionParser.java index 4cb6a24a4cc..d4d7c05c7ad 100644 --- a/cli/src/main/java/bisq/cli/opts/CreateOfferOptionParser.java +++ b/cli/src/main/java/bisq/cli/opts/CreateOfferOptionParser.java @@ -50,7 +50,7 @@ public class CreateOfferOptionParser extends AbstractMethodOptionParser implemen final OptionSpec mktPriceMarginOpt = parser.accepts(OPT_MKT_PRICE_MARGIN, "market btc price margin (%)") .withOptionalArg() - .defaultsTo(EMPTY); + .defaultsTo("0.00"); final OptionSpec fixedPriceOpt = parser.accepts(OPT_FIXED_PRICE, "fixed btc price") .withOptionalArg() @@ -119,7 +119,7 @@ public boolean isUsingMktPriceMargin() { @SuppressWarnings("unused") public String getMktPriceMargin() { - return isUsingMktPriceMargin() ? options.valueOf(mktPriceMarginOpt) : ""; + return isUsingMktPriceMargin() ? options.valueOf(mktPriceMarginOpt) : "0.00"; } public BigDecimal getMktPriceMarginAsBigDecimal() { @@ -127,7 +127,7 @@ public BigDecimal getMktPriceMarginAsBigDecimal() { } public String getFixedPrice() { - return options.has(fixedPriceOpt) ? options.valueOf(fixedPriceOpt) : ""; + return options.has(fixedPriceOpt) ? options.valueOf(fixedPriceOpt) : "0.00"; } public String getSecurityDeposit() {