@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.
- package/cjs/aaveV3/sgho.js +5 -5
- package/esm/aaveV3/sgho.js +5 -5
- package/package.json +2 -2
- package/src/aaveV3/sgho.ts +5 -5
package/cjs/aaveV3/sgho.js
CHANGED
|
@@ -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
|
|
83
|
-
balance: tokenAmountValue((_c = data
|
|
84
|
-
maxDeposit: tokenAmountValue((_d = data
|
|
85
|
-
maxWithdraw: tokenAmountValue((_e = data
|
|
86
|
-
underlyingBalance: tokenAmountValue((_f = data
|
|
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
|
}
|
package/esm/aaveV3/sgho.js
CHANGED
|
@@ -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
|
|
77
|
-
balance: tokenAmountValue((_c = data
|
|
78
|
-
maxDeposit: tokenAmountValue((_d = data
|
|
79
|
-
maxWithdraw: tokenAmountValue((_e = data
|
|
80
|
-
underlyingBalance: tokenAmountValue((_f = data
|
|
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.
|
|
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.
|
|
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",
|
package/src/aaveV3/sgho.ts
CHANGED
|
@@ -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
|
|
90
|
-
balance: tokenAmountValue(data
|
|
91
|
-
maxDeposit: tokenAmountValue(data
|
|
92
|
-
maxWithdraw: tokenAmountValue(data
|
|
93
|
-
underlyingBalance: tokenAmountValue(data
|
|
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) {
|