@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 CHANGED
@@ -1 +1 @@
1
- 2.109.0-beta.0
1
+ 2.109.0-beta.1
@@ -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)
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.109.0-beta.0",
3
+ "version": "2.109.0-beta.1",
4
4
  "main": "lib/node/index.js",
5
5
  "types": "lib/node/index.d.ts",
6
6
  "browser": "./lib/browser/index.js",
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,