@curvefi/api 2.66.9 → 2.66.10

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.
@@ -1,5 +1,5 @@
1
1
  export const volumeNetworks = {
2
- getVolumes: [1, 10, 100, 137, 250, 252, 8453, 42161],
2
+ getVolumes: [1, 10, 100, 137, 250, 252, 8453, 42161, 146],
3
3
  getSubgraphData: [43114],
4
4
  getFactoryAPYs: [56, 196, 324, 1284, 2222, 5000, 42220, 1313161554],
5
5
  };
@@ -127,7 +127,7 @@ export class StatsPool {
127
127
  return totalLiquidity.toFixed(8);
128
128
  });
129
129
  this.volume = () => __awaiter(this, void 0, void 0, function* () {
130
- if (curve.isLiteChain) {
130
+ if (curve.isLiteChain && curve.chainId !== 146) {
131
131
  throw Error('This method is not supported for the lite version');
132
132
  }
133
133
  const network = curve.constants.NETWORK_NAME;
@@ -139,7 +139,7 @@ export class StatsPool {
139
139
  throw Error(`Can't get Volume for ${this.pool.name} (id: ${this.pool.id})`);
140
140
  });
141
141
  this.baseApy = () => __awaiter(this, void 0, void 0, function* () {
142
- if (curve.isLiteChain) {
142
+ if (curve.isLiteChain && curve.chainId !== 146) {
143
143
  throw Error('baseApy is not supported for the lite version');
144
144
  }
145
145
  const network = curve.constants.NETWORK_NAME;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.66.9",
3
+ "version": "2.66.10",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",