Merge branch '5-api-bsqswap-simulation-n-docs-update' into 6-api-xmr-trading

This commit is contained in:
ghubstan 2021-12-03 13:16:26 -03:00
commit 0f32fe2fc3
No known key found for this signature in database
GPG Key ID: E35592D6800A861E
2 changed files with 3 additions and 1 deletions

View File

@ -379,6 +379,7 @@ $ ./bisq-cli --password=xyz --port=9998 createoffer \
--swap=true \ --swap=true \
--direction=BUY \ --direction=BUY \
--amount=0.5 \ --amount=0.5 \
--currency-code=BSQ \
--fixed-price=0.00005 --fixed-price=0.00005
``` ```

View File

@ -378,7 +378,8 @@ public class CliMain {
var offerId = offerIdOpt.getOfferId(); var offerId = offerIdOpt.getOfferId();
var offerCategory = client.getMyOfferCategory(offerId); var offerCategory = client.getMyOfferCategory(offerId);
if (offerCategory.equals(BSQ_SWAP)) if (offerCategory.equals(BSQ_SWAP))
throw new IllegalStateException("cannot edit swap bsq offers"); throw new IllegalStateException("bsq swap offers cannot be edited,"
+ " but you may cancel them without forfeiting any funds");
var opts = new EditOfferOptionParser(args).parse(); var opts = new EditOfferOptionParser(args).parse();
var fixedPrice = opts.getFixedPrice(); var fixedPrice = opts.getFixedPrice();