@curvefi/api 2.66.10 → 2.66.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 +2 -2
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -590,7 +590,7 @@ export const getTVL = (...args_1) => __awaiter(void 0, [...args_1], void 0, func
590
590
  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);
591
591
  });
592
592
  export const getVolumeApiController = (network) => __awaiter(void 0, void 0, void 0, function* () {
593
- if (curve.isLiteChain) {
593
+ if (curve.isLiteChain && curve.chainId !== 146) {
594
594
  throw Error('This method is not supported for the lite version');
595
595
  }
596
596
  if (volumeNetworks.getVolumes.includes(curve.chainId)) {
@@ -605,7 +605,7 @@ export const getVolumeApiController = (network) => __awaiter(void 0, void 0, voi
605
605
  throw Error(`Can't get volume for network: ${network}`);
606
606
  });
607
607
  export const getVolume = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (chainId = curve.chainId) {
608
- if (curve.isLiteChain) {
608
+ if (curve.isLiteChain && curve.chainId !== 146) {
609
609
  throw Error('This method is not supported for the lite version');
610
610
  }
611
611
  const networkConstants = yield getNetworkConstants(chainId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.66.10",
3
+ "version": "2.66.11",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",