@gearbox-protocol/sdk 3.0.0-vfour.34 → 3.0.0-vfour.35

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.
@@ -19308,6 +19308,9 @@ var PriceOracleContract = class extends BaseContract {
19308
19308
  for (const tx of txs) {
19309
19309
  const { to: priceFeed, callData } = tx;
19310
19310
  const [token, reserve] = this.#findTokenForPriceFeed(priceFeed);
19311
+ if (!token) {
19312
+ continue;
19313
+ }
19311
19314
  const { args } = viem.decodeFunctionData({
19312
19315
  abi: iUpdatablePriceFeedAbi,
19313
19316
  data: callData
@@ -19392,7 +19395,8 @@ var PriceOracleContract = class extends BaseContract {
19392
19395
  });
19393
19396
  }
19394
19397
  /**
19395
- * Helper method to find "attachment point" of price feed (makes sense for updatable price feeds only) - token (in v3.0 can be ticker) and main/reserve flag
19398
+ * Helper method to find "attachment point" of price feed (makes sense for updatable price feeds only) -
19399
+ * returns token (in v3.0 can be ticker) and main/reserve flag
19396
19400
  *
19397
19401
  * @param priceFeed
19398
19402
  * @returns
@@ -19412,7 +19416,7 @@ var PriceOracleContract = class extends BaseContract {
19412
19416
  if (ticker) {
19413
19417
  return [ticker, false];
19414
19418
  }
19415
- throw new Error(`cannot find token for price feed ${priceFeed}`);
19419
+ return [void 0, false];
19416
19420
  }
19417
19421
  get state() {
19418
19422
  return {
@@ -19306,6 +19306,9 @@ var PriceOracleContract = class extends BaseContract {
19306
19306
  for (const tx of txs) {
19307
19307
  const { to: priceFeed, callData } = tx;
19308
19308
  const [token, reserve] = this.#findTokenForPriceFeed(priceFeed);
19309
+ if (!token) {
19310
+ continue;
19311
+ }
19309
19312
  const { args } = decodeFunctionData({
19310
19313
  abi: iUpdatablePriceFeedAbi,
19311
19314
  data: callData
@@ -19390,7 +19393,8 @@ var PriceOracleContract = class extends BaseContract {
19390
19393
  });
19391
19394
  }
19392
19395
  /**
19393
- * Helper method to find "attachment point" of price feed (makes sense for updatable price feeds only) - token (in v3.0 can be ticker) and main/reserve flag
19396
+ * Helper method to find "attachment point" of price feed (makes sense for updatable price feeds only) -
19397
+ * returns token (in v3.0 can be ticker) and main/reserve flag
19394
19398
  *
19395
19399
  * @param priceFeed
19396
19400
  * @returns
@@ -19410,7 +19414,7 @@ var PriceOracleContract = class extends BaseContract {
19410
19414
  if (ticker) {
19411
19415
  return [ticker, false];
19412
19416
  }
19413
- throw new Error(`cannot find token for price feed ${priceFeed}`);
19417
+ return [void 0, false];
19414
19418
  }
19415
19419
  get state() {
19416
19420
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-vfour.34",
3
+ "version": "3.0.0-vfour.35",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,