@meteora-ag/dlmm 1.9.5 → 1.9.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.
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -9599,7 +9599,9 @@ declare enum PositionVersion {
|
|
|
9599
9599
|
}
|
|
9600
9600
|
declare enum PairType {
|
|
9601
9601
|
Permissionless = 0,
|
|
9602
|
-
Permissioned = 1
|
|
9602
|
+
Permissioned = 1,
|
|
9603
|
+
CustomizablePermissionless = 2,
|
|
9604
|
+
PermissionlessV2 = 3
|
|
9603
9605
|
}
|
|
9604
9606
|
declare enum ShrinkMode {
|
|
9605
9607
|
ShrinkBoth = 0,
|
package/dist/index.js
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) => {
|
|
@@ -14235,7 +14237,7 @@ function validateAndSortRebalanceDeposit(deposits) {
|
|
|
14235
14237
|
(a, b) => a.minDeltaId.sub(b.minDeltaId).toNumber()
|
|
14236
14238
|
);
|
|
14237
14239
|
for (const deposit of deposits) {
|
|
14238
|
-
if (deposit.minDeltaId.
|
|
14240
|
+
if (deposit.minDeltaId.gt(deposit.maxDeltaId)) {
|
|
14239
14241
|
throw "Invalid minDeltaId or maxDeltaId";
|
|
14240
14242
|
}
|
|
14241
14243
|
}
|
|
@@ -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
|