impermax-sdk 2.1.275 → 2.1.276

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.
@@ -151,19 +151,19 @@ class OffchainLendingPool {
151
151
  }
152
152
  // Flags
153
153
  async isDeprecated() {
154
- const deprecatedPairs = this.getOffchain().deprecatedPairs[this.factory];
154
+ const deprecatedPairs = this.getOffchain().getPairsList(this.factory, { deprecated: true });
155
155
  if (!deprecatedPairs)
156
156
  return false;
157
157
  return deprecatedPairs.includes(this.pairAddress);
158
158
  }
159
159
  async isBlacklisted() {
160
- const blacklistedPairs = this.getOffchain().blacklistedPairs[this.factory];
160
+ const blacklistedPairs = this.getOffchain().getPairsList(this.factory, { blacklisted: true });
161
161
  if (!blacklistedPairs)
162
162
  return false;
163
163
  return blacklistedPairs.includes(this.pairAddress);
164
164
  }
165
165
  async isWhitelisted() {
166
- const whitelistedPairs = this.getOffchain().whitelistedPairs[this.factory];
166
+ const whitelistedPairs = this.getOffchain().getPairsList(this.factory, { whitelisted: true });
167
167
  if (!whitelistedPairs)
168
168
  return false;
169
169
  return whitelistedPairs.includes(this.pairAddress);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.275",
3
+ "version": "2.1.276",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",