@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 +1 -1
- package/lib/decode/user.js +1 -0
- package/lib/math/state.js +0 -3
- package/lib/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/decode/user.ts +1 -0
- package/src/math/state.ts +0 -3
- package/src/types.ts +1 -0
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.49.0-beta.
|
|
1
|
+
2.49.0-beta.19
|
package/lib/decode/user.js
CHANGED
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
package/package.json
CHANGED
package/src/decode/user.ts
CHANGED
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
|
}
|