@curvefi/api 2.42.0 → 2.42.1

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.
package/README.md CHANGED
@@ -381,6 +381,8 @@ import curve from "@curvefi/api";
381
381
  // [ false, false, false, false ]
382
382
  pool.inApi;
383
383
  // true
384
+ pool.isGaugeKilled;
385
+ // false
384
386
  })()
385
387
  ````
386
388
 
package/lib/curve.js CHANGED
@@ -112,7 +112,7 @@ var _killGauges = function (poolsData) { return __awaiter(void 0, void 0, void 0
112
112
  });
113
113
  for (poolId in poolsData) {
114
114
  if (isKilled[poolsData[poolId].gauge_address]) {
115
- poolsData[poolId].gauge_address = ethers.ZeroAddress;
115
+ poolsData[poolId].is_gauge_killed = true;
116
116
  }
117
117
  }
118
118
  return [2 /*return*/];
@@ -41,6 +41,7 @@ export interface IPoolData {
41
41
  deposit_abi?: any;
42
42
  sCurveRewards_abi?: any;
43
43
  in_api?: boolean;
44
+ is_gauge_killed?: boolean;
44
45
  }
45
46
  export interface ICurve {
46
47
  provider: ethers.BrowserProvider | ethers.JsonRpcProvider;
@@ -30,6 +30,7 @@ export declare class PoolTemplate {
30
30
  wrappedDecimals: number[];
31
31
  useLending: boolean[];
32
32
  inApi: boolean;
33
+ isGaugeKilled: boolean;
33
34
  estimateGas: {
34
35
  depositApprove: (amounts: (number | string)[]) => Promise<number>;
35
36
  deposit: (amounts: (number | string)[]) => Promise<number>;
@@ -66,7 +66,7 @@ var YEAR = 365 * DAY;
66
66
  var PoolTemplate = /** @class */ (function () {
67
67
  function PoolTemplate(id) {
68
68
  var _this = this;
69
- var _c, _d;
69
+ var _c, _d, _e;
70
70
  this.statsParameters = function () { return __awaiter(_this, void 0, void 0, function () {
71
71
  var multicallContract, lpMulticallContract, calls, i, additionalCalls, _virtualPrice, _fee, _prices, _adminFee, _A, _lpTokenSupply, _gamma, e_1, _c, virtualPrice, fee, adminFee, A, lpTokenSupply, gamma, priceOracle, priceScale, prices, i, A_PRECISION, _d, _future_A, _initial_A, _future_A_time, _initial_A_time, _e, future_A, initial_A, future_A_time, initial_A_time;
72
72
  var _f, _g, _h;
@@ -1110,6 +1110,7 @@ var PoolTemplate = /** @class */ (function () {
1110
1110
  this.wrappedDecimals = poolData.wrapped_decimals;
1111
1111
  this.useLending = poolData.use_lending || poolData.underlying_coin_addresses.map(function () { return false; });
1112
1112
  this.inApi = (_d = poolData.in_api) !== null && _d !== void 0 ? _d : false;
1113
+ this.isGaugeKilled = (_e = poolData.is_gauge_killed) !== null && _e !== void 0 ? _e : false;
1113
1114
  this.estimateGas = {
1114
1115
  depositApprove: this.depositApproveEstimateGas.bind(this),
1115
1116
  deposit: this.depositEstimateGas.bind(this),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.42.0",
3
+ "version": "2.42.1",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",