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

@ -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)