@curvefi/api 2.68.5 → 2.68.6

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].multicallContract;
228
- const calls = [];
229
- for (let i = 0; i < this.pool.wrappedCoins.length; i++)
230
- calls.push(contract.balances(i));
231
- const _wrappedBalances = yield curve.multicallProvider.all(calls);
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.5",
3
+ "version": "2.68.6",
4
4
  "description": "JavaScript library for curve.finance",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",