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

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.18
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/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.18",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
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
  }