@curvefi/api 2.72.1 → 2.72.2

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.
@@ -15,6 +15,7 @@ export interface IPricesGauge {
15
15
  is_killed: boolean;
16
16
  gauge_weight: string;
17
17
  gauge_relative_weight: number;
18
+ gauge_type: string;
18
19
  }
19
20
  export declare const getGaugesOverview: () => Promise<IPricesGauge[]>;
20
21
  export declare const getPoolsFromPricesApi: (network: INetworkName, poolType: IPoolType) => Promise<IExtendedPoolDataFromApi>;
package/lib/prices-api.js CHANGED
@@ -49,8 +49,9 @@ const getGaugeAddressByPoolAddress = (network) => __awaiter(void 0, void 0, void
49
49
  const { gauges } = yield _getGaugesOverview();
50
50
  const map = new Map();
51
51
  for (const gauge of gauges !== null && gauges !== void 0 ? gauges : []) {
52
- if (((_a = gauge.pool) === null || _a === void 0 ? void 0 : _a.chain) === network)
53
- map.set(gauge.pool.address.toLowerCase(), ((_b = gauge.effective_address) !== null && _b !== void 0 ? _b : gauge.address).toLowerCase());
52
+ if (((_a = gauge.pool) === null || _a === void 0 ? void 0 : _a.chain) !== network || gauge.gauge_type !== "Liquidity")
53
+ continue;
54
+ map.set(gauge.pool.address.toLowerCase(), ((_b = gauge.effective_address) !== null && _b !== void 0 ? _b : gauge.address).toLowerCase());
54
55
  }
55
56
  return map;
56
57
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.72.1",
3
+ "version": "2.72.2",
4
4
  "description": "JavaScript library for curve.finance",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",