mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-12-25 07:19:29 -05:00
offer min amount defaults to fixed amount
This commit is contained in:
parent
0e612aec74
commit
e18d0ea2c2
@ -128,7 +128,7 @@ const TestConfig = {
|
||||
price: undefined, // use market price if undefined // TODO: converted to long on backend
|
||||
paymentAccountId: undefined,
|
||||
priceMargin: 0.0,
|
||||
minAmount: BigInt("150000000000"), // TODO: disable by default, test somewhere
|
||||
minAmount: undefined,
|
||||
buyerSecurityDeposit: 0.15,
|
||||
awaitUnlockedBalance: false,
|
||||
triggerPrice: undefined // TODO: fails if there is a decimal, converted to long on backend
|
||||
|
@ -990,9 +990,9 @@ class HavenoClient {
|
||||
.setBuyerSecurityDeposit(buyerSecurityDeposit)
|
||||
.setPrice(price ? price.toString() : "1.0") // TOOD (woodser): positive price required even if using market price?
|
||||
.setUseMarketBasedPrice(price === undefined) // TODO (woodser): this field is redundant; remove from api
|
||||
.setMinAmount(minAmount ? minAmount.toString() : amount.toString());
|
||||
if (marketPriceMargin) request.setMarketPriceMargin(marketPriceMargin);
|
||||
if (triggerPrice) request.setTriggerPrice(triggerPrice.toString());
|
||||
if (minAmount) request.setMinAmount(minAmount.toString());
|
||||
return new Promise(function(resolve, reject) {
|
||||
that._offersClient.createOffer(request, {password: that._password}, function(err: grpcWeb.RpcError, response: CreateOfferReply) {
|
||||
if (err) reject(err);
|
||||
|
Loading…
Reference in New Issue
Block a user