@drift-labs/sdk 2.34.1-beta.3 → 2.34.1-beta.4

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.34.1-beta.3
1
+ 2.34.1-beta.4
package/lib/dlob/DLOB.js CHANGED
@@ -490,18 +490,9 @@ class DLOB {
490
490
  return nodesToFill;
491
491
  }
492
492
  // All bids/asks that can expire
493
- const bidGenerators = [
494
- nodeLists.takingLimit.bid.getGenerator(),
495
- nodeLists.restingLimit.bid.getGenerator(),
496
- nodeLists.floatingLimit.bid.getGenerator(),
497
- nodeLists.market.bid.getGenerator(),
498
- ];
499
- const askGenerators = [
500
- nodeLists.takingLimit.ask.getGenerator(),
501
- nodeLists.restingLimit.ask.getGenerator(),
502
- nodeLists.floatingLimit.ask.getGenerator(),
503
- nodeLists.market.ask.getGenerator(),
504
- ];
493
+ // dont try to expire limit orders with tif as its inefficient use of blockspace
494
+ const bidGenerators = [nodeLists.market.bid.getGenerator()];
495
+ const askGenerators = [nodeLists.market.ask.getGenerator()];
505
496
  for (const bidGenerator of bidGenerators) {
506
497
  for (const bid of bidGenerator) {
507
498
  if ((0, __1.isOrderExpired)(bid.order, ts)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.34.1-beta.3",
3
+ "version": "2.34.1-beta.4",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
package/src/dlob/DLOB.ts CHANGED
@@ -930,18 +930,9 @@ export class DLOB {
930
930
  }
931
931
 
932
932
  // All bids/asks that can expire
933
- const bidGenerators = [
934
- nodeLists.takingLimit.bid.getGenerator(),
935
- nodeLists.restingLimit.bid.getGenerator(),
936
- nodeLists.floatingLimit.bid.getGenerator(),
937
- nodeLists.market.bid.getGenerator(),
938
- ];
939
- const askGenerators = [
940
- nodeLists.takingLimit.ask.getGenerator(),
941
- nodeLists.restingLimit.ask.getGenerator(),
942
- nodeLists.floatingLimit.ask.getGenerator(),
943
- nodeLists.market.ask.getGenerator(),
944
- ];
933
+ // dont try to expire limit orders with tif as its inefficient use of blockspace
934
+ const bidGenerators = [nodeLists.market.bid.getGenerator()];
935
+ const askGenerators = [nodeLists.market.ask.getGenerator()];
945
936
 
946
937
  for (const bidGenerator of bidGenerators) {
947
938
  for (const bid of bidGenerator) {