@gmx-io/sdk 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_ALLOWED_SWAP_SLIPPAGE_BPS = exports.HIGH_ALLOWED_SWAP_SLIPPAGE_BPS = exports.DEFAULT_ACCEPTABLE_PRICE_IMPACT_BUFFER = exports.HIGH_SWAP_IMPACT_BPS = exports.HIGH_COLLATERAL_IMPACT_BPS = exports.HIGH_POSITION_IMPACT_BPS = exports.HIGH_PRICE_IMPACT_BPS = exports.BASIS_POINTS_DIVISOR_BIGINT = exports.BASIS_POINTS_DIVISOR = exports.USD_DECIMALS = void 0;
3
+ exports.DEFAULT_ALLOWED_SWAP_SLIPPAGE_BPS = exports.HIGH_ALLOWED_SWAP_SLIPPAGE_BPS = exports.DEFAULT_ACCEPTABLE_PRICE_IMPACT_BUFFER = exports.HIGH_SWAP_IMPACT_BPS = exports.HIGH_COLLATERAL_IMPACT_BPS = exports.HIGH_POSITION_IMPACT_BPS = exports.HIGH_PRICE_IMPACT_BPS = exports.BASIS_POINTS_DECIMALS = exports.BASIS_POINTS_DIVISOR_BIGINT = exports.BASIS_POINTS_DIVISOR = exports.USD_DECIMALS = void 0;
4
4
  var numbers_1 = require("../utils/numbers");
5
5
  Object.defineProperty(exports, "USD_DECIMALS", { enumerable: true, get: function () { return numbers_1.USD_DECIMALS; } });
6
6
  Object.defineProperty(exports, "BASIS_POINTS_DIVISOR", { enumerable: true, get: function () { return numbers_1.BASIS_POINTS_DIVISOR; } });
7
7
  Object.defineProperty(exports, "BASIS_POINTS_DIVISOR_BIGINT", { enumerable: true, get: function () { return numbers_1.BASIS_POINTS_DIVISOR_BIGINT; } });
8
+ Object.defineProperty(exports, "BASIS_POINTS_DECIMALS", { enumerable: true, get: function () { return numbers_1.BASIS_POINTS_DECIMALS; } });
8
9
  // V2
9
10
  exports.HIGH_PRICE_IMPACT_BPS = 80; // 0.8%
10
11
  exports.HIGH_POSITION_IMPACT_BPS = 50; // 0.5%
@@ -113,7 +113,7 @@ async function increaseOrderHelper(sdk, params) {
113
113
  referralCodeForTxn: params.referralCodeForTxn,
114
114
  triggerPrice: params.limitPrice,
115
115
  collateralTokenAddress: collateralToken.address,
116
- isLong: true,
116
+ isLong: params.isLong,
117
117
  receiveTokenAddress: collateralTokenAddress,
118
118
  indexToken: marketInfo.indexToken,
119
119
  marketInfo,