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.priceMargin,
ctx.triggerPrice,
ctx.reserveExactAmount,
ctx.offerMinAmount);
ctx.offerMinAmount,
ctx.reserveExactAmount);
testOffer(offer, ctx);
// 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} 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<OfferInfo> {
minAmount?: bigint,
reserveExactAmount?: boolean): Promise<OfferInfo> {
try {
const request = new PostOfferRequest()
.setDirection(direction)