@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 +2 -0
- package/lib/curve.js +1 -1
- package/lib/interfaces.d.ts +1 -0
- package/lib/pools/PoolTemplate.d.ts +1 -0
- package/lib/pools/PoolTemplate.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
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].
|
|
115
|
+
poolsData[poolId].is_gauge_killed = true;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
return [2 /*return*/];
|
package/lib/interfaces.d.ts
CHANGED
|
@@ -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),
|