@drift-labs/sdk 2.47.0-beta.2 → 2.47.0-beta.3

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.47.0-beta.2
1
+ 2.47.0-beta.3
package/lib/user.js CHANGED
@@ -1748,7 +1748,7 @@ class User {
1748
1748
  const { totalAssetValue, totalLiabilityValue } = this.getSpotMarketAssetAndLiabilityValue();
1749
1749
  const equity = totalAssetValue.sub(totalLiabilityValue);
1750
1750
  let slotsBeforeIdle;
1751
- if (equity.lt(numericConstants_1.QUOTE_PRECISION)) {
1751
+ if (equity.lt(numericConstants_1.QUOTE_PRECISION.muln(1000))) {
1752
1752
  slotsBeforeIdle = new _1.BN(9000); // 1 hour
1753
1753
  }
1754
1754
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.47.0-beta.2",
3
+ "version": "2.47.0-beta.3",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
package/src/user.ts CHANGED
@@ -3169,7 +3169,7 @@ export class User {
3169
3169
  const equity = totalAssetValue.sub(totalLiabilityValue);
3170
3170
 
3171
3171
  let slotsBeforeIdle: BN;
3172
- if (equity.lt(QUOTE_PRECISION)) {
3172
+ if (equity.lt(QUOTE_PRECISION.muln(1000))) {
3173
3173
  slotsBeforeIdle = new BN(9000); // 1 hour
3174
3174
  } else {
3175
3175
  slotsBeforeIdle = new BN(1512000); // 1 week