@defisaver/positions-sdk 2.1.106-sgho-dev → 2.1.107

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.
@@ -79,11 +79,11 @@ const getSghoData = (network_1, ...args_1) => __awaiter(void 0, [network_1, ...a
79
79
  targetRate: percentValue(data.targetRate),
80
80
  paused: !!data.paused,
81
81
  user: {
82
- shares: tokenAmountValue((_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.shares),
83
- balance: tokenAmountValue((_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.balance),
84
- maxDeposit: tokenAmountValue((_d = data === null || data === void 0 ? void 0 : data.user) === null || _d === void 0 ? void 0 : _d.maxDeposit),
85
- maxWithdraw: tokenAmountValue((_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.maxWithdraw),
86
- underlyingBalance: tokenAmountValue((_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.underlyingBalance),
82
+ shares: tokenAmountValue((_b = data.user) === null || _b === void 0 ? void 0 : _b.shares),
83
+ balance: tokenAmountValue((_c = data.user) === null || _c === void 0 ? void 0 : _c.balance),
84
+ maxDeposit: tokenAmountValue((_d = data.user) === null || _d === void 0 ? void 0 : _d.maxDeposit),
85
+ maxWithdraw: tokenAmountValue((_e = data.user) === null || _e === void 0 ? void 0 : _e.maxWithdraw),
86
+ underlyingBalance: tokenAmountValue((_f = data.user) === null || _f === void 0 ? void 0 : _f.underlyingBalance),
87
87
  },
88
88
  };
89
89
  }
@@ -73,11 +73,11 @@ export const getSghoData = (network_1, ...args_1) => __awaiter(void 0, [network_
73
73
  targetRate: percentValue(data.targetRate),
74
74
  paused: !!data.paused,
75
75
  user: {
76
- shares: tokenAmountValue((_b = data === null || data === void 0 ? void 0 : data.user) === null || _b === void 0 ? void 0 : _b.shares),
77
- balance: tokenAmountValue((_c = data === null || data === void 0 ? void 0 : data.user) === null || _c === void 0 ? void 0 : _c.balance),
78
- maxDeposit: tokenAmountValue((_d = data === null || data === void 0 ? void 0 : data.user) === null || _d === void 0 ? void 0 : _d.maxDeposit),
79
- maxWithdraw: tokenAmountValue((_e = data === null || data === void 0 ? void 0 : data.user) === null || _e === void 0 ? void 0 : _e.maxWithdraw),
80
- underlyingBalance: tokenAmountValue((_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.underlyingBalance),
76
+ shares: tokenAmountValue((_b = data.user) === null || _b === void 0 ? void 0 : _b.shares),
77
+ balance: tokenAmountValue((_c = data.user) === null || _c === void 0 ? void 0 : _c.balance),
78
+ maxDeposit: tokenAmountValue((_d = data.user) === null || _d === void 0 ? void 0 : _d.maxDeposit),
79
+ maxWithdraw: tokenAmountValue((_e = data.user) === null || _e === void 0 ? void 0 : _e.maxWithdraw),
80
+ underlyingBalance: tokenAmountValue((_f = data.user) === null || _f === void 0 ? void 0 : _f.underlyingBalance),
81
81
  },
82
82
  };
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "2.1.106-sgho-dev",
3
+ "version": "2.1.107",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -21,7 +21,7 @@
21
21
  "author": "",
22
22
  "license": "ISC",
23
23
  "dependencies": {
24
- "@defisaver/tokens": "1.7.35-sgho-dev",
24
+ "@defisaver/tokens": "^1.7.36",
25
25
  "@types/lodash": "^4.17.15",
26
26
  "@types/memoizee": "^0.4.12",
27
27
  "decimal.js": "^10.6.0",
@@ -86,11 +86,11 @@ export const getSghoData = async (
86
86
  targetRate: percentValue(data.targetRate),
87
87
  paused: !!data.paused,
88
88
  user: {
89
- shares: tokenAmountValue(data?.user?.shares),
90
- balance: tokenAmountValue(data?.user?.balance),
91
- maxDeposit: tokenAmountValue(data?.user?.maxDeposit),
92
- maxWithdraw: tokenAmountValue(data?.user?.maxWithdraw),
93
- underlyingBalance: tokenAmountValue(data?.user?.underlyingBalance),
89
+ shares: tokenAmountValue(data.user?.shares),
90
+ balance: tokenAmountValue(data.user?.balance),
91
+ maxDeposit: tokenAmountValue(data.user?.maxDeposit),
92
+ maxWithdraw: tokenAmountValue(data.user?.maxWithdraw),
93
+ underlyingBalance: tokenAmountValue(data.user?.underlyingBalance),
94
94
  },
95
95
  };
96
96
  } catch (e) {