@curvefi/api 2.46.2 → 2.46.3
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 +2 -1
- package/lib/pools/utils.js +2 -0
- package/lib/utils.js +2 -1
- package/package.json +1 -1
|
@@ -730,7 +730,8 @@ var PoolTemplate = /** @class */ (function () {
|
|
|
730
730
|
case 5:
|
|
731
731
|
tokens = (_f.sent())
|
|
732
732
|
.filter(function (addr) { return addr !== curve.constants.ZERO_ADDRESS; })
|
|
733
|
-
.map(function (addr) { return addr.toLowerCase(); })
|
|
733
|
+
.map(function (addr) { return addr.toLowerCase(); })
|
|
734
|
+
.filter(function (addr) { return curve.chainId === 1 || addr !== curve.constants.COINS.crv; });
|
|
734
735
|
tokenInfoCalls = [];
|
|
735
736
|
for (_i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
|
|
736
737
|
token = tokens_1[_i];
|
package/lib/pools/utils.js
CHANGED
|
@@ -212,6 +212,8 @@ var _getUserClaimable = function (pools, address, useCache) { return __awaiter(v
|
|
|
212
212
|
rewardAddress = rawRewardTokens.shift();
|
|
213
213
|
if (rewardAddress === curve.constants.ZERO_ADDRESS)
|
|
214
214
|
continue;
|
|
215
|
+
if (curve.chainId !== 1 && rewardAddress === curve.constants.COINS.crv)
|
|
216
|
+
continue;
|
|
215
217
|
// REYIELD shitcoin which breaks things, because symbol() throws an error
|
|
216
218
|
if (rewardAddress === "0xf228ec3476318aCB4E719D2b290bb2ef8B34DFfA".toLowerCase())
|
|
217
219
|
continue;
|
package/lib/utils.js
CHANGED
|
@@ -485,7 +485,8 @@ export var _getRewardsFromApi = function () { return __awaiter(void 0, void 0, v
|
|
|
485
485
|
for (_a = 0, _b = extendedPoolData.poolData; _a < _b.length; _a++) {
|
|
486
486
|
pool = _b[_a];
|
|
487
487
|
if (pool.gaugeAddress) {
|
|
488
|
-
rewardsDict[pool.gaugeAddress.toLowerCase()] = pool.gaugeRewards
|
|
488
|
+
rewardsDict[pool.gaugeAddress.toLowerCase()] = pool.gaugeRewards
|
|
489
|
+
.filter(function (r) { return curve.chainId === 1 || r.tokenAddress.toLowerCase() !== curve.constants.COINS.crv; });
|
|
489
490
|
}
|
|
490
491
|
}
|
|
491
492
|
}
|