@drift-labs/sdk-browser 2.135.0-beta.2 → 2.135.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/browser/user.js +1 -1
- package/lib/node/user.js +1 -1
- package/package.json +1 -1
- package/src/user.ts +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.135.0-beta.
|
|
1
|
+
2.135.0-beta.3
|
package/lib/browser/user.js
CHANGED
|
@@ -1089,7 +1089,7 @@ class User {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
isHighLeverageMode(marginCategory) {
|
|
1091
1091
|
return ((0, types_1.isVariant)(this.getUserAccount().marginMode, 'highLeverage') ||
|
|
1092
|
-
(
|
|
1092
|
+
(marginCategory === 'Maintenance' &&
|
|
1093
1093
|
(0, types_1.isVariant)(this.getUserAccount().marginMode, 'highLeverageMaintenance')));
|
|
1094
1094
|
}
|
|
1095
1095
|
/**
|
package/lib/node/user.js
CHANGED
|
@@ -1089,7 +1089,7 @@ class User {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
isHighLeverageMode(marginCategory) {
|
|
1091
1091
|
return ((0, types_1.isVariant)(this.getUserAccount().marginMode, 'highLeverage') ||
|
|
1092
|
-
(
|
|
1092
|
+
(marginCategory === 'Maintenance' &&
|
|
1093
1093
|
(0, types_1.isVariant)(this.getUserAccount().marginMode, 'highLeverageMaintenance')));
|
|
1094
1094
|
}
|
|
1095
1095
|
/**
|
package/package.json
CHANGED
package/src/user.ts
CHANGED
|
@@ -2102,7 +2102,7 @@ export class User {
|
|
|
2102
2102
|
public isHighLeverageMode(marginCategory: MarginCategory): boolean {
|
|
2103
2103
|
return (
|
|
2104
2104
|
isVariant(this.getUserAccount().marginMode, 'highLeverage') ||
|
|
2105
|
-
(
|
|
2105
|
+
(marginCategory === 'Maintenance' &&
|
|
2106
2106
|
isVariant(this.getUserAccount().marginMode, 'highLeverageMaintenance'))
|
|
2107
2107
|
);
|
|
2108
2108
|
}
|