@drift-labs/sdk 2.49.0-beta.17 → 2.49.0-beta.19

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.49.0-beta.17
1
+ 2.49.0-beta.19
@@ -233,6 +233,7 @@ function decodeUser(buffer) {
233
233
  slot,
234
234
  price,
235
235
  baseAssetAmount,
236
+ quoteAssetAmount: undefined,
236
237
  baseAssetAmountFilled,
237
238
  quoteAssetAmountFilled,
238
239
  triggerPrice,
package/lib/math/state.js CHANGED
@@ -22,9 +22,6 @@ function calculateInitUserFee(stateAccount) {
22
22
  }
23
23
  exports.calculateInitUserFee = calculateInitUserFee;
24
24
  function getMaxNumberOfSubAccounts(stateAccount) {
25
- if (stateAccount.maxNumberOfSubAccounts <= 100) {
26
- return new __1.BN(stateAccount.maxNumberOfSubAccounts);
27
- }
28
25
  return new __1.BN(stateAccount.maxNumberOfSubAccounts).muln(100);
29
26
  }
30
27
  exports.getMaxNumberOfSubAccounts = getMaxNumberOfSubAccounts;
package/lib/types.d.ts CHANGED
@@ -914,6 +914,7 @@ export type Order = {
914
914
  marketIndex: number;
915
915
  price: BN;
916
916
  baseAssetAmount: BN;
917
+ quoteAssetAmount: BN;
917
918
  baseAssetAmountFilled: BN;
918
919
  quoteAssetAmountFilled: BN;
919
920
  direction: PositionDirection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.49.0-beta.17",
3
+ "version": "2.49.0-beta.19",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -242,6 +242,7 @@ export function decodeUser(buffer: Buffer): UserAccount {
242
242
  slot,
243
243
  price,
244
244
  baseAssetAmount,
245
+ quoteAssetAmount: undefined,
245
246
  baseAssetAmountFilled,
246
247
  quoteAssetAmountFilled,
247
248
  triggerPrice,
package/src/math/state.ts CHANGED
@@ -22,8 +22,5 @@ export function calculateInitUserFee(stateAccount: StateAccount): BN {
22
22
  }
23
23
 
24
24
  export function getMaxNumberOfSubAccounts(stateAccount: StateAccount): BN {
25
- if (stateAccount.maxNumberOfSubAccounts <= 100) {
26
- return new BN(stateAccount.maxNumberOfSubAccounts);
27
- }
28
25
  return new BN(stateAccount.maxNumberOfSubAccounts).muln(100);
29
26
  }
package/src/types.ts CHANGED
@@ -870,6 +870,7 @@ export type Order = {
870
870
  marketIndex: number;
871
871
  price: BN;
872
872
  baseAssetAmount: BN;
873
+ quoteAssetAmount: BN;
873
874
  baseAssetAmountFilled: BN;
874
875
  quoteAssetAmountFilled: BN;
875
876
  direction: PositionDirection;