mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
offerdata fixes
This commit is contained in:
parent
e7ca8243f6
commit
50a185bcd8
1 changed files with 6 additions and 6 deletions
|
@ -41,11 +41,11 @@ public class OfferData {
|
|||
@JsonProperty
|
||||
String offerer;
|
||||
@JsonProperty
|
||||
Coin btc_amount;
|
||||
String btc_amount;
|
||||
@JsonProperty
|
||||
Coin min_btc_amount;
|
||||
String min_btc_amount;
|
||||
@JsonProperty
|
||||
long other_amount;
|
||||
String other_amount;
|
||||
@JsonProperty
|
||||
String other_currency;
|
||||
@JsonProperty
|
||||
|
@ -62,10 +62,10 @@ public class OfferData {
|
|||
this.arbitrators = offer.getArbitratorNodeAddresses().stream()
|
||||
.map(nodeAddress -> nodeAddress.toString()).collect(Collectors.toList());
|
||||
this.offerer = offer.getOffererNodeAddress().toString();
|
||||
this.btc_amount = offer.getAmount();
|
||||
this.min_btc_amount = offer.getMinAmount();
|
||||
this.btc_amount = offer.getAmount().toPlainString();
|
||||
this.min_btc_amount = offer.getMinAmount().toPlainString();
|
||||
if(offer.getPrice() != null) {
|
||||
this.other_amount = offer.getPrice().getValue();
|
||||
this.other_amount = offer.getPrice().toPlainString();
|
||||
this.other_currency = offer.getPrice().getCurrencyCode();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue