@drift-labs/sdk 2.109.0-beta.0 → 2.109.0-beta.1
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/VERSION +1 -1
- package/lib/browser/dlob/DLOB.js +6 -0
- package/lib/node/dlob/DLOB.js +6 -0
- package/package.json +1 -1
- package/src/dlob/DLOB.ts +6 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.109.0-beta.
|
|
1
|
+
2.109.0-beta.1
|
package/lib/browser/dlob/DLOB.js
CHANGED
|
@@ -574,6 +574,9 @@ class DLOB {
|
|
|
574
574
|
nodeLists.restingLimit.ask.getGenerator(),
|
|
575
575
|
nodeLists.floatingLimit.ask.getGenerator(),
|
|
576
576
|
];
|
|
577
|
+
if (this.protectedMakerView) {
|
|
578
|
+
generatorList.push(nodeLists.protectedFloatingLimit.ask.getGenerator());
|
|
579
|
+
}
|
|
577
580
|
yield* this.getBestNode(generatorList, oraclePriceData, slot, (bestNode, currentNode, slot, oraclePriceData) => {
|
|
578
581
|
return bestNode
|
|
579
582
|
.getPrice(oraclePriceData, slot)
|
|
@@ -594,6 +597,9 @@ class DLOB {
|
|
|
594
597
|
nodeLists.restingLimit.bid.getGenerator(),
|
|
595
598
|
nodeLists.floatingLimit.bid.getGenerator(),
|
|
596
599
|
];
|
|
600
|
+
if (this.protectedMakerView) {
|
|
601
|
+
generatorList.push(nodeLists.protectedFloatingLimit.bid.getGenerator());
|
|
602
|
+
}
|
|
597
603
|
yield* this.getBestNode(generatorList, oraclePriceData, slot, (bestNode, currentNode, slot, oraclePriceData) => {
|
|
598
604
|
return bestNode
|
|
599
605
|
.getPrice(oraclePriceData, slot)
|
package/lib/node/dlob/DLOB.js
CHANGED
|
@@ -574,6 +574,9 @@ class DLOB {
|
|
|
574
574
|
nodeLists.restingLimit.ask.getGenerator(),
|
|
575
575
|
nodeLists.floatingLimit.ask.getGenerator(),
|
|
576
576
|
];
|
|
577
|
+
if (this.protectedMakerView) {
|
|
578
|
+
generatorList.push(nodeLists.protectedFloatingLimit.ask.getGenerator());
|
|
579
|
+
}
|
|
577
580
|
yield* this.getBestNode(generatorList, oraclePriceData, slot, (bestNode, currentNode, slot, oraclePriceData) => {
|
|
578
581
|
return bestNode
|
|
579
582
|
.getPrice(oraclePriceData, slot)
|
|
@@ -594,6 +597,9 @@ class DLOB {
|
|
|
594
597
|
nodeLists.restingLimit.bid.getGenerator(),
|
|
595
598
|
nodeLists.floatingLimit.bid.getGenerator(),
|
|
596
599
|
];
|
|
600
|
+
if (this.protectedMakerView) {
|
|
601
|
+
generatorList.push(nodeLists.protectedFloatingLimit.bid.getGenerator());
|
|
602
|
+
}
|
|
597
603
|
yield* this.getBestNode(generatorList, oraclePriceData, slot, (bestNode, currentNode, slot, oraclePriceData) => {
|
|
598
604
|
return bestNode
|
|
599
605
|
.getPrice(oraclePriceData, slot)
|
package/package.json
CHANGED
package/src/dlob/DLOB.ts
CHANGED
|
@@ -1094,6 +1094,9 @@ export class DLOB {
|
|
|
1094
1094
|
nodeLists.restingLimit.ask.getGenerator(),
|
|
1095
1095
|
nodeLists.floatingLimit.ask.getGenerator(),
|
|
1096
1096
|
];
|
|
1097
|
+
if (this.protectedMakerView) {
|
|
1098
|
+
generatorList.push(nodeLists.protectedFloatingLimit.ask.getGenerator());
|
|
1099
|
+
}
|
|
1097
1100
|
|
|
1098
1101
|
yield* this.getBestNode(
|
|
1099
1102
|
generatorList,
|
|
@@ -1132,6 +1135,9 @@ export class DLOB {
|
|
|
1132
1135
|
nodeLists.restingLimit.bid.getGenerator(),
|
|
1133
1136
|
nodeLists.floatingLimit.bid.getGenerator(),
|
|
1134
1137
|
];
|
|
1138
|
+
if (this.protectedMakerView) {
|
|
1139
|
+
generatorList.push(nodeLists.protectedFloatingLimit.bid.getGenerator());
|
|
1140
|
+
}
|
|
1135
1141
|
|
|
1136
1142
|
yield* this.getBestNode(
|
|
1137
1143
|
generatorList,
|