@gearbox-protocol/sdk 1.23.1 → 1.23.2
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/lib/utils/formatter.js +6 -1
- package/package.json +2 -2
package/lib/utils/formatter.js
CHANGED
|
@@ -86,7 +86,12 @@ function toSignificant(num, decimals) {
|
|
|
86
86
|
return number.toSignificantDigits(6, 4).toString();
|
|
87
87
|
}
|
|
88
88
|
exports.toSignificant = toSignificant;
|
|
89
|
-
const toBigInt = (v) =>
|
|
89
|
+
const toBigInt = (v) => {
|
|
90
|
+
const value = typeof v === "object" && v.type === "BigNumber"
|
|
91
|
+
? v.hex
|
|
92
|
+
: v.toString();
|
|
93
|
+
return BigInt(value);
|
|
94
|
+
};
|
|
90
95
|
exports.toBigInt = toBigInt;
|
|
91
96
|
function toBN(num, decimals) {
|
|
92
97
|
if (num === "")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.2",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@types/deep-eql": "^4.0.0",
|
|
28
|
-
"axios": "^1.2.
|
|
28
|
+
"axios": "^1.2.6",
|
|
29
29
|
"decimal.js-light": "^2.5.1",
|
|
30
30
|
"deep-eql": "^4.1.0",
|
|
31
31
|
"moment": "^2.29.4"
|