mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Adjust GrpcOffersService to new .proto *Pct field names
This commit is contained in:
parent
5cc928a7e5
commit
8408c093e0
@ -125,9 +125,8 @@ class GrpcOffersService extends OffersImplBase {
|
||||
try {
|
||||
String offerId = req.getId();
|
||||
Optional<OpenOffer> myOpenOffer = coreApi.findMyOpenOffer(offerId);
|
||||
OfferInfo offerInfo = myOpenOffer.isPresent()
|
||||
? toMyOfferInfo(myOpenOffer.get())
|
||||
: toOfferInfo(coreApi.getOffer(offerId));
|
||||
OfferInfo offerInfo = myOpenOffer.map(OfferInfo::toMyOfferInfo)
|
||||
.orElseGet(() -> toOfferInfo(coreApi.getOffer(offerId)));
|
||||
var reply = GetOfferReply.newBuilder()
|
||||
.setOffer(offerInfo.toProtoMessage())
|
||||
.build();
|
||||
@ -278,10 +277,10 @@ class GrpcOffersService extends OffersImplBase {
|
||||
req.getDirection(),
|
||||
req.getPrice(),
|
||||
req.getUseMarketBasedPrice(),
|
||||
req.getMarketPriceMargin(),
|
||||
req.getMarketPriceMarginPct(),
|
||||
req.getAmount(),
|
||||
req.getMinAmount(),
|
||||
req.getBuyerSecurityDeposit(),
|
||||
req.getBuyerSecurityDepositPct(),
|
||||
req.getTriggerPrice(),
|
||||
req.getPaymentAccountId(),
|
||||
req.getMakerFeeCurrencyCode(),
|
||||
@ -307,7 +306,7 @@ class GrpcOffersService extends OffersImplBase {
|
||||
coreApi.editOffer(req.getId(),
|
||||
req.getPrice(),
|
||||
req.getUseMarketBasedPrice(),
|
||||
req.getMarketPriceMargin(),
|
||||
req.getMarketPriceMarginPct(),
|
||||
req.getTriggerPrice(),
|
||||
req.getEnable(),
|
||||
req.getEditType());
|
||||
|
Loading…
Reference in New Issue
Block a user