mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-14 09:25:37 -04:00
support creating offer from grpc api
fee payment currency is xmr scale atomic units from grpc api to centineros for consistency implement ParsingUtils.atomicUnitsToCentineros()
This commit is contained in:
parent
2b80385928
commit
d136815552
3 changed files with 16 additions and 4 deletions
|
@ -21,7 +21,7 @@ import bisq.core.api.CoreApi;
|
|||
import bisq.core.api.model.OfferInfo;
|
||||
import bisq.core.offer.Offer;
|
||||
import bisq.core.offer.OpenOffer;
|
||||
|
||||
import bisq.core.util.ParsingUtils;
|
||||
import bisq.proto.grpc.CancelOfferReply;
|
||||
import bisq.proto.grpc.CancelOfferRequest;
|
||||
import bisq.proto.grpc.CreateOfferReply;
|
||||
|
@ -149,8 +149,8 @@ class GrpcOffersService extends OffersImplBase {
|
|||
req.getPrice(),
|
||||
req.getUseMarketBasedPrice(),
|
||||
req.getMarketPriceMargin(),
|
||||
req.getAmount(),
|
||||
req.getMinAmount(),
|
||||
ParsingUtils.atomicUnitsToCentineros(req.getAmount()), // scale atomic unit to centineros for consistency TODO switch base to atomic units?
|
||||
ParsingUtils.atomicUnitsToCentineros(req.getMinAmount()),
|
||||
req.getBuyerSecurityDeposit(),
|
||||
req.getTriggerPrice(),
|
||||
req.getPaymentAccountId(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue