@meteora-ag/dlmm 1.9.5 → 1.9.6
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.
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -11320,6 +11320,8 @@ var PositionVersion = /* @__PURE__ */ ((PositionVersion3) => {
|
|
|
11320
11320
|
var PairType = /* @__PURE__ */ ((PairType2) => {
|
|
11321
11321
|
PairType2[PairType2["Permissionless"] = 0] = "Permissionless";
|
|
11322
11322
|
PairType2[PairType2["Permissioned"] = 1] = "Permissioned";
|
|
11323
|
+
PairType2[PairType2["CustomizablePermissionless"] = 2] = "CustomizablePermissionless";
|
|
11324
|
+
PairType2[PairType2["PermissionlessV2"] = 3] = "PermissionlessV2";
|
|
11323
11325
|
return PairType2;
|
|
11324
11326
|
})(PairType || {});
|
|
11325
11327
|
var ShrinkMode = /* @__PURE__ */ ((ShrinkMode2) => {
|
|
@@ -21370,7 +21372,7 @@ var DLMM = class {
|
|
|
21370
21372
|
if (this.lbPair.status == 1 /* Disabled */) {
|
|
21371
21373
|
return true;
|
|
21372
21374
|
}
|
|
21373
|
-
if (this.lbPair.pairType == 1 /* Permissioned */) {
|
|
21375
|
+
if (this.lbPair.pairType == 1 /* Permissioned */ || this.lbPair.pairType == 2 /* CustomizablePermissionless */) {
|
|
21374
21376
|
const currentPoint = this.lbPair.activationType == 0 /* Slot */ ? this.clock.slot : this.clock.unixTimestamp;
|
|
21375
21377
|
const preActivationSwapPoint = this.lbPair.activationPoint.sub(
|
|
21376
21378
|
this.lbPair.preActivationDuration
|