diff --git a/src/HavenoClient.test.ts b/src/HavenoClient.test.ts index 62a3d760..761778ec 100644 --- a/src/HavenoClient.test.ts +++ b/src/HavenoClient.test.ts @@ -2322,8 +2322,8 @@ async function makeOffer(ctx?: TradeContext): Promise { ctx.price, ctx.priceMargin, ctx.triggerPrice, - ctx.reserveExactAmount, - ctx.offerMinAmount); + ctx.offerMinAmount, + ctx.reserveExactAmount); testOffer(offer, ctx); // offer is included in my offers only diff --git a/src/HavenoClient.ts b/src/HavenoClient.ts index 9c8dc149..459d13db 100644 --- a/src/HavenoClient.ts +++ b/src/HavenoClient.ts @@ -997,8 +997,8 @@ export default class HavenoClient { * @param {number} buyerSecurityDepositPct - buyer security deposit as % of trade amount * @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 {bigint} minAmount - minimum amount to trade (optional, default to fixed amount) * @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) * @return {OfferInfo} the posted offer */ @@ -1010,8 +1010,8 @@ export default class HavenoClient { price?: number, marketPriceMarginPct?: number, triggerPrice?: number, - reserveExactAmount?: boolean, - minAmount?: bigint): Promise { + minAmount?: bigint, + reserveExactAmount?: boolean): Promise { try { const request = new PostOfferRequest() .setDirection(direction)