@drift-labs/sdk 2.40.0-beta.14 → 2.40.0-beta.15

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.40.0-beta.14
1
+ 2.40.0-beta.15
@@ -60,9 +60,6 @@ class DLOBSubscriber {
60
60
  throw new Error('Either marketName or marketIndex and marketType must be provided');
61
61
  }
62
62
  }
63
- if (includeVamm && fallbackL2Generators.length > 0) {
64
- throw new Error('includeVamm can only be used if fallbackL2Generators is empty');
65
- }
66
63
  let oraclePriceData;
67
64
  let fallbackBid;
68
65
  let fallbackAsk;
@@ -78,6 +75,9 @@ class DLOBSubscriber {
78
75
  this.driftClient.getOracleDataForSpotMarket(marketIndex);
79
76
  }
80
77
  if (isPerp && includeVamm) {
78
+ if (fallbackL2Generators.length > 0) {
79
+ throw new Error('includeVamm can only be used if fallbackL2Generators is empty');
80
+ }
81
81
  fallbackL2Generators = [
82
82
  (0, orderBookLevels_1.getVammL2Generator)({
83
83
  marketAccount: this.driftClient.getPerpMarketAccount(marketIndex),
@@ -4,7 +4,6 @@ exports.groupL2 = exports.getVammL2Generator = exports.createL2Levels = exports.
4
4
  const __1 = require("..");
5
5
  const assert_1 = require("../assert/assert");
6
6
  exports.DEFAULT_TOP_OF_BOOK_QUOTE_AMOUNTS = [
7
- new __1.BN(100).mul(__1.QUOTE_PRECISION),
8
7
  new __1.BN(500).mul(__1.QUOTE_PRECISION),
9
8
  new __1.BN(1000).mul(__1.QUOTE_PRECISION),
10
9
  new __1.BN(2000).mul(__1.QUOTE_PRECISION),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.40.0-beta.14",
3
+ "version": "2.40.0-beta.15",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -103,12 +103,6 @@ export class DLOBSubscriber {
103
103
  }
104
104
  }
105
105
 
106
- if (includeVamm && fallbackL2Generators.length > 0) {
107
- throw new Error(
108
- 'includeVamm can only be used if fallbackL2Generators is empty'
109
- );
110
- }
111
-
112
106
  let oraclePriceData;
113
107
  let fallbackBid;
114
108
  let fallbackAsk;
@@ -127,6 +121,12 @@ export class DLOBSubscriber {
127
121
  }
128
122
 
129
123
  if (isPerp && includeVamm) {
124
+ if (fallbackL2Generators.length > 0) {
125
+ throw new Error(
126
+ 'includeVamm can only be used if fallbackL2Generators is empty'
127
+ );
128
+ }
129
+
130
130
  fallbackL2Generators = [
131
131
  getVammL2Generator({
132
132
  marketAccount: this.driftClient.getPerpMarketAccount(marketIndex),
@@ -49,7 +49,6 @@ export type L3OrderBook = {
49
49
  };
50
50
 
51
51
  export const DEFAULT_TOP_OF_BOOK_QUOTE_AMOUNTS = [
52
- new BN(100).mul(QUOTE_PRECISION),
53
52
  new BN(500).mul(QUOTE_PRECISION),
54
53
  new BN(1000).mul(QUOTE_PRECISION),
55
54
  new BN(2000).mul(QUOTE_PRECISION),