support buying xmr without deposit or fee using passphrase

This commit is contained in:
woodser 2024-12-16 07:04:53 -05:00
parent ece3b0fec0
commit 775fbc41c2
115 changed files with 3845 additions and 838 deletions

View file

@ -150,10 +150,12 @@ class GrpcOffersService extends OffersImplBase {
req.getMarketPriceMarginPct(),
req.getAmount(),
req.getMinAmount(),
req.getBuyerSecurityDepositPct(),
req.getSecurityDepositPct(),
req.getTriggerPrice(),
req.getReserveExactAmount(),
req.getPaymentAccountId(),
req.getIsPrivateOffer(),
req.getBuyerAsTakerWithoutDeposit(),
offer -> {
// This result handling consumer's accept operation will return
// the new offer to the gRPC client after async placement is done.

View file

@ -138,6 +138,7 @@ class GrpcTradesService extends TradesImplBase {
coreApi.takeOffer(req.getOfferId(),
req.getPaymentAccountId(),
req.getAmount(),
req.getChallenge(),
trade -> {
TradeInfo tradeInfo = toTradeInfo(trade);
var reply = TakeOfferReply.newBuilder()