re-order reserveExactAmount parameter

This commit is contained in:
woodser 2023-07-26 18:58:48 -04:00
parent ceeeab36cd
commit fd1a570800
2 changed files with 5 additions and 5 deletions

View file

@ -2322,8 +2322,8 @@ async function makeOffer(ctx?: TradeContext): Promise<OfferInfo> {
ctx.price, ctx.price,
ctx.priceMargin, ctx.priceMargin,
ctx.triggerPrice, ctx.triggerPrice,
ctx.reserveExactAmount, ctx.offerMinAmount,
ctx.offerMinAmount); ctx.reserveExactAmount);
testOffer(offer, ctx); testOffer(offer, ctx);
// offer is included in my offers only // offer is included in my offers only

View file

@ -997,8 +997,8 @@ export default class HavenoClient {
* @param {number} buyerSecurityDepositPct - buyer security deposit as % of trade amount * @param {number} buyerSecurityDepositPct - buyer security deposit as % of trade amount
* @param {number} price - trade price (optional, default to market price) * @param {number} price - trade price (optional, default to market price)
* @param {number} marketPriceMarginPct - if using market price, % from market price to accept (optional, default 0%) * @param {number} marketPriceMarginPct - if using market price, % from market price to accept (optional, default 0%)
* @param {bigint} minAmount - minimum amount to trade (optional, default to fixed amount)
* @param {number} triggerPrice - price to remove offer (optional) * @param {number} triggerPrice - price to remove offer (optional)
* @param {bigint} minAmount - minimum amount to trade (optional, default to fixed amount)
* @param {number} reserveExactAmount - reserve exact amount needed for offer, incurring on-chain transaction and 10 confirmations before the offer goes live (default = false) * @param {number} reserveExactAmount - reserve exact amount needed for offer, incurring on-chain transaction and 10 confirmations before the offer goes live (default = false)
* @return {OfferInfo} the posted offer * @return {OfferInfo} the posted offer
*/ */
@ -1010,8 +1010,8 @@ export default class HavenoClient {
price?: number, price?: number,
marketPriceMarginPct?: number, marketPriceMarginPct?: number,
triggerPrice?: number, triggerPrice?: number,
reserveExactAmount?: boolean, minAmount?: bigint,
minAmount?: bigint): Promise<OfferInfo> { reserveExactAmount?: boolean): Promise<OfferInfo> {
try { try {
const request = new PostOfferRequest() const request = new PostOfferRequest()
.setDirection(direction) .setDirection(direction)