@gearbox-protocol/sdk 3.0.0-vfour.290 → 3.0.0-vfour.292

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.
@@ -251,7 +251,7 @@ class AccountOpener extends import_sdk.SDKConstruct {
251
251
  totalUSD += market.priceOracle.convertToUSD(pool.underlying, diff);
252
252
  }
253
253
  }
254
- totalUSD = totalUSD * 105n / 100n;
254
+ totalUSD = totalUSD * import_sdk.PERCENTAGE_FACTOR / 9000n;
255
255
  this.#logger?.debug(
256
256
  `total USD to claim from faucet: ${(0, import_sdk.formatBN)(totalUSD, 8)}`
257
257
  );
@@ -237,7 +237,7 @@ class AccountOpener extends SDKConstruct {
237
237
  totalUSD += market.priceOracle.convertToUSD(pool.underlying, diff);
238
238
  }
239
239
  }
240
- totalUSD = totalUSD * 105n / 100n;
240
+ totalUSD = totalUSD * PERCENTAGE_FACTOR / 9000n;
241
241
  this.#logger?.debug(
242
242
  `total USD to claim from faucet: ${formatBN(totalUSD, 8)}`
243
243
  );
@@ -413,7 +413,7 @@ export declare class PriceOracleBaseContract<abi extends Abi | readonly unknown[
413
413
  * @param priceFeed
414
414
  * @returns
415
415
  */
416
- protected findTokenForPriceFeed(priceFeed: Address): [token: Address | undefined, reserve: boolean];
416
+ findTokenForPriceFeed(priceFeed: Address): [token: Address | undefined, reserve: boolean];
417
417
  stateHuman(raw?: boolean): PriceOracleStateHuman;
418
418
  protected get priceFeedTree(): readonly PriceFeedTreeNode[];
419
419
  }
@@ -355,6 +355,6 @@ type abi = typeof abi;
355
355
  export declare class PriceOracleV300Contract extends PriceOracleBaseContract<abi> {
356
356
  constructor(sdk: GearboxSDK, data: PriceOracleData, underlying: Address);
357
357
  processLog(log: Log<bigint, number, false, undefined, undefined, abi, ContractEventName<abi>>): void;
358
- protected findTokenForPriceFeed(priceFeed: Address): [token: Address | undefined, reserve: boolean];
358
+ findTokenForPriceFeed(priceFeed: Address): [token: Address | undefined, reserve: boolean];
359
359
  }
360
360
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-vfour.290",
3
+ "version": "3.0.0-vfour.292",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",