@curvefi/api 2.26.4 → 2.27.0
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/lib/pools/PoolTemplate.js +1 -1
- package/lib/pools/utils.js +2 -2
- package/package.json +1 -1
|
@@ -1187,7 +1187,7 @@ var PoolTemplate = /** @class */ (function () {
|
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
1189
|
PoolTemplate.prototype.rewardsOnly = function () {
|
|
1190
|
-
if (curve_1.curve.chainId === 2222
|
|
1190
|
+
if (curve_1.curve.chainId === 2222)
|
|
1191
1191
|
return true; // TODO remove this for Kava and Celo
|
|
1192
1192
|
if (this.gauge === ethers_1.ethers.constants.AddressZero)
|
|
1193
1193
|
throw Error("".concat(this.name, " doesn't have gauge"));
|
package/lib/pools/utils.js
CHANGED
|
@@ -182,7 +182,7 @@ var _getUserClaimable = function (pools, address, useCache) { return __awaiter(v
|
|
|
182
182
|
for (_i = 0, poolsToFetch_3 = poolsToFetch; _i < poolsToFetch_3.length; _i++) {
|
|
183
183
|
poolId = poolsToFetch_3[_i];
|
|
184
184
|
pool = (0, poolConstructor_1.getPool)(poolId);
|
|
185
|
-
if (curve_1.curve.chainId === 2222 ||
|
|
185
|
+
if (curve_1.curve.chainId === 2222 || pool.gauge === ethers_1.ethers.constants.AddressZero) { // TODO remove this for Kava
|
|
186
186
|
hasCrvReward.push(false);
|
|
187
187
|
continue;
|
|
188
188
|
}
|
|
@@ -324,7 +324,7 @@ var _getUserClaimableUseApi = function (pools, address, useCache) { return __awa
|
|
|
324
324
|
for (_i = 0, poolsToFetch_5 = poolsToFetch; _i < poolsToFetch_5.length; _i++) {
|
|
325
325
|
poolId = poolsToFetch_5[_i];
|
|
326
326
|
pool = (0, poolConstructor_1.getPool)(poolId);
|
|
327
|
-
if (curve_1.curve.chainId === 2222 ||
|
|
327
|
+
if (curve_1.curve.chainId === 2222 || pool.gauge === ethers_1.ethers.constants.AddressZero) { // TODO remove this for Kava
|
|
328
328
|
hasCrvReward.push(false);
|
|
329
329
|
continue;
|
|
330
330
|
}
|