@curvefi/api 2.26.2 → 2.26.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.
|
@@ -165,7 +165,9 @@ function getFactoryPoolsDataFromApi(isCrypto) {
|
|
|
165
165
|
return [4 /*yield*/, (0, external_api_1._getPoolsFromApi)(network, factoryType)];
|
|
166
166
|
case 1:
|
|
167
167
|
rawPoolList = _a.apply(void 0, [(_b.sent()).poolData]);
|
|
168
|
-
|
|
168
|
+
if (!isCrypto) {
|
|
169
|
+
rawPoolList = rawPoolList.filter(function (p) { return p.implementationAddress in constants_1.FACTORY_CONSTANTS[_this.chainId].implementationABIDict; });
|
|
170
|
+
}
|
|
169
171
|
mainAddresses = Object.values(this.constants.POOLS_DATA).map(function (pool) { return pool.swap_address; });
|
|
170
172
|
rawPoolList = rawPoolList.filter(function (p) { return !mainAddresses.includes(p.address); });
|
|
171
173
|
setFactorySwapContracts.call(this, rawPoolList, isCrypto);
|