@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 +1 -1
- package/lib/user.js +1 -1
- package/package.json +1 -1
- package/src/user.ts +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.47.0-beta.
|
|
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
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
|