@gearbox-protocol/sdk 13.7.0-kyc.2 → 13.7.0-kyc.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.
@@ -173,19 +173,10 @@ class TokensMeta extends import_utils.AddressMap {
173
173
  batchSize: 0
174
174
  });
175
175
  this.#logger?.debug(`loaded ${resp.length} contract types`);
176
- const kycFactories = new import_utils.AddressSet();
177
176
  for (let i = 0; i < tokensToLoad.length; i++) {
178
- const meta = this.#overrideTokenMeta(
179
- tokensToLoad[i],
180
- resp[2 * i],
181
- resp[2 * i + 1]
182
- );
177
+ this.#overrideTokenMeta(tokensToLoad[i], resp[2 * i], resp[2 * i + 1]);
183
178
  this.#tokenDataLoaded.add(tokensToLoad[i]);
184
- if (this.isKYCUnderlying(meta)) {
185
- kycFactories.add(meta.kycFactory);
186
- }
187
179
  }
188
- this.#logger?.debug(`found ${kycFactories.size} KYC factories`);
189
180
  }
190
181
  #overrideTokenMeta(token, contractTypeResp, _serializeResp) {
191
182
  const meta = this.mustGet(token);
@@ -155,19 +155,10 @@ class TokensMeta extends AddressMap {
155
155
  batchSize: 0
156
156
  });
157
157
  this.#logger?.debug(`loaded ${resp.length} contract types`);
158
- const kycFactories = new AddressSet();
159
158
  for (let i = 0; i < tokensToLoad.length; i++) {
160
- const meta = this.#overrideTokenMeta(
161
- tokensToLoad[i],
162
- resp[2 * i],
163
- resp[2 * i + 1]
164
- );
159
+ this.#overrideTokenMeta(tokensToLoad[i], resp[2 * i], resp[2 * i + 1]);
165
160
  this.#tokenDataLoaded.add(tokensToLoad[i]);
166
- if (this.isKYCUnderlying(meta)) {
167
- kycFactories.add(meta.kycFactory);
168
- }
169
161
  }
170
- this.#logger?.debug(`found ${kycFactories.size} KYC factories`);
171
162
  }
172
163
  #overrideTokenMeta(token, contractTypeResp, _serializeResp) {
173
164
  const meta = this.mustGet(token);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "13.7.0-kyc.2",
3
+ "version": "13.7.0-kyc.3",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",