@curvefi/api 1.24.1 → 1.24.2

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.
@@ -145,7 +145,7 @@ function setFactoryZapContracts() {
145
145
  }
146
146
  function getFactoryPoolsDataFromApi(isCrypto) {
147
147
  return __awaiter(this, void 0, void 0, function () {
148
- var network, factoryType, url, response, rawPoolList, FACTORY_POOLS_DATA;
148
+ var network, factoryType, url, response, rawPoolList, mainAddresses, FACTORY_POOLS_DATA;
149
149
  var _this = this;
150
150
  return __generator(this, function (_a) {
151
151
  switch (_a.label) {
@@ -157,6 +157,8 @@ function getFactoryPoolsDataFromApi(isCrypto) {
157
157
  case 1:
158
158
  response = _a.sent();
159
159
  rawPoolList = response.data.data.poolData;
160
+ mainAddresses = Object.values(this.constants.POOLS_DATA).map(function (pool) { return pool.swap_address.toLowerCase(); });
161
+ rawPoolList = rawPoolList.filter(function (p) { return !mainAddresses.includes(p.address.toLowerCase()); });
160
162
  setFactorySwapContracts.call(this, rawPoolList, isCrypto);
161
163
  if (isCrypto)
162
164
  setCryptoFactoryTokenContracts.call(this, rawPoolList);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "1.24.1",
3
+ "version": "1.24.2",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {