Skip to content

Commit

Permalink
Fix default opt values
Browse files Browse the repository at this point in the history
  • Loading branch information
ghubstan committed Jan 14, 2021
1 parent baf79e2 commit f2a8999
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/src/main/java/bisq/cli/opts/CreateOfferOptionParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class CreateOfferOptionParser extends AbstractMethodOptionParser implemen

final OptionSpec<String> mktPriceMarginOpt = parser.accepts(OPT_MKT_PRICE_MARGIN, "market btc price margin (%)")
.withOptionalArg()
.defaultsTo(EMPTY);
.defaultsTo("0.00");

final OptionSpec<String> fixedPriceOpt = parser.accepts(OPT_FIXED_PRICE, "fixed btc price")
.withOptionalArg()
Expand Down Expand Up @@ -119,15 +119,15 @@ public boolean isUsingMktPriceMargin() {

@SuppressWarnings("unused")
public String getMktPriceMargin() {
return isUsingMktPriceMargin() ? options.valueOf(mktPriceMarginOpt) : "";
return isUsingMktPriceMargin() ? options.valueOf(mktPriceMarginOpt) : "0.00";
}

public BigDecimal getMktPriceMarginAsBigDecimal() {
return isUsingMktPriceMargin() ? new BigDecimal(options.valueOf(mktPriceMarginOpt)) : BigDecimal.ZERO;
}

public String getFixedPrice() {
return options.has(fixedPriceOpt) ? options.valueOf(fixedPriceOpt) : "";
return options.has(fixedPriceOpt) ? options.valueOf(fixedPriceOpt) : "0.00";
}

public String getSecurityDeposit() {
Expand Down

0 comments on commit f2a8999

Please sign in to comment.