@curvefi/api 2.65.10 → 2.65.11

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.
Files changed (2) hide show
  1. package/lib/utils.js +0 -3
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -553,9 +553,6 @@ const _getNetworkName = (network = curve.chainId) => {
553
553
  }
554
554
  };
555
555
  export const getTVL = (network = curve.chainId) => __awaiter(void 0, void 0, void 0, function* () {
556
- if (curve.isLiteChain) {
557
- throw Error('This method is not supported for the lite version');
558
- }
559
556
  network = _getNetworkName(network);
560
557
  const allTypesExtendedPoolData = yield _getAllPoolsFromApi(network);
561
558
  return allTypesExtendedPoolData.reduce((sum, data) => { var _a, _b; return sum + ((_b = (_a = data.tvl) !== null && _a !== void 0 ? _a : data.tvlAll) !== null && _b !== void 0 ? _b : 0); }, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.65.10",
3
+ "version": "2.65.11",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",