@curvefi/api 2.68.5 → 2.68.7
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.
|
@@ -224,11 +224,12 @@ export class StatsPool {
|
|
|
224
224
|
wrappedBalances() {
|
|
225
225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
226
226
|
const curve = this.pool.curve;
|
|
227
|
-
const contract = curve.contracts[this.pool.address].
|
|
228
|
-
const
|
|
229
|
-
for (let i = 0; i < this.pool.wrappedCoins.length; i++)
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
const contract = curve.contracts[this.pool.address].contract;
|
|
228
|
+
const promises = [];
|
|
229
|
+
for (let i = 0; i < this.pool.wrappedCoins.length; i++) {
|
|
230
|
+
promises.push(contract.balances(i));
|
|
231
|
+
}
|
|
232
|
+
const _wrappedBalances = yield Promise.all(promises);
|
|
232
233
|
return _wrappedBalances.map((_b, i) => curve.formatUnits(_b, this.pool.wrappedDecimals[i]));
|
|
233
234
|
});
|
|
234
235
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@curvefi/api",
|
|
3
|
-
"version": "2.68.
|
|
3
|
+
"version": "2.68.7",
|
|
4
4
|
"description": "JavaScript library for curve.finance",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Macket",
|
|
@@ -25,26 +25,26 @@
|
|
|
25
25
|
},
|
|
26
26
|
"type": "module",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@babel/eslint-parser": "^7.
|
|
28
|
+
"@babel/eslint-parser": "^7.28.0",
|
|
29
29
|
"@eslint/eslintrc": "^3.3.1",
|
|
30
|
-
"@eslint/js": "^9.
|
|
30
|
+
"@eslint/js": "^9.34.0",
|
|
31
31
|
"@types/chai": "^5.2.2",
|
|
32
32
|
"@types/memoizee": "^0.4.12",
|
|
33
33
|
"@types/mocha": "^10.0.10",
|
|
34
|
-
"@types/node": "^
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
36
|
-
"@typescript-eslint/parser": "^8.
|
|
37
|
-
"chai": "^5.
|
|
38
|
-
"eslint": "^9.
|
|
39
|
-
"globals": "^16.
|
|
40
|
-
"mocha": "^11.
|
|
41
|
-
"typescript": "^5.
|
|
42
|
-
"vue-eslint-parser": "^10.
|
|
34
|
+
"@types/node": "^24.3.1",
|
|
35
|
+
"@typescript-eslint/eslint-plugin": "^8.42.0",
|
|
36
|
+
"@typescript-eslint/parser": "^8.42.0",
|
|
37
|
+
"chai": "^5.3.3",
|
|
38
|
+
"eslint": "^9.34.0",
|
|
39
|
+
"globals": "^16.3.0",
|
|
40
|
+
"mocha": "^11.7.2",
|
|
41
|
+
"typescript": "^5.9.2",
|
|
42
|
+
"vue-eslint-parser": "^10.2.0"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@curvefi/ethcall": "^6.0.16",
|
|
46
|
-
"bignumber.js": "^9.3.
|
|
47
|
-
"ethers": "^6.
|
|
46
|
+
"bignumber.js": "^9.3.1",
|
|
47
|
+
"ethers": "^6.15.0",
|
|
48
48
|
"memoizee": "^0.4.17"
|
|
49
49
|
}
|
|
50
50
|
}
|