mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-02-24 08:29:54 -05:00
re-order reserveExactAmount parameter
This commit is contained in:
parent
ceeeab36cd
commit
fd1a570800
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user