@gearbox-protocol/sdk 3.0.0-vfour.250 → 3.0.0-vfour.251

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.
@@ -546,20 +546,12 @@ var AccountOpener = class extends sdk.SDKConstruct {
546
546
  async function calcLiquidatableLTs(sdk$1, ca, factor = 9990n, logger) {
547
547
  const cm = sdk$1.marketRegister.findCreditManager(ca.creditManager);
548
548
  const market = sdk$1.marketRegister.findByCreditManager(ca.creditManager);
549
- console.log({
550
- liquidationThresholds: cm.creditManager.liquidationThresholds
551
- });
552
549
  const weightedBalances = ca.tokens.filter(({ token, balance }) => {
553
550
  const minBalance = 10n ** BigInt(Math.max(8, sdk$1.tokensMeta.decimals(token)) - 8);
554
551
  return balance > minBalance;
555
552
  }).map((t) => {
556
553
  const { token, balance } = t;
557
554
  const balanceU = market.priceOracle.convertToUnderlying(token, balance);
558
- console.log(
559
- ">>>>>",
560
- sdk$1.provider.addressLabels.get(token),
561
- cm.creditManager.liquidationThresholds.get(token)
562
- );
563
555
  const lt = BigInt(cm.creditManager.liquidationThresholds.mustGet(token));
564
556
  return {
565
557
  token,
@@ -544,20 +544,12 @@ var AccountOpener = class extends SDKConstruct {
544
544
  async function calcLiquidatableLTs(sdk, ca, factor = 9990n, logger) {
545
545
  const cm = sdk.marketRegister.findCreditManager(ca.creditManager);
546
546
  const market = sdk.marketRegister.findByCreditManager(ca.creditManager);
547
- console.log({
548
- liquidationThresholds: cm.creditManager.liquidationThresholds
549
- });
550
547
  const weightedBalances = ca.tokens.filter(({ token, balance }) => {
551
548
  const minBalance = 10n ** BigInt(Math.max(8, sdk.tokensMeta.decimals(token)) - 8);
552
549
  return balance > minBalance;
553
550
  }).map((t) => {
554
551
  const { token, balance } = t;
555
552
  const balanceU = market.priceOracle.convertToUnderlying(token, balance);
556
- console.log(
557
- ">>>>>",
558
- sdk.provider.addressLabels.get(token),
559
- cm.creditManager.liquidationThresholds.get(token)
560
- );
561
553
  const lt = BigInt(cm.creditManager.liquidationThresholds.mustGet(token));
562
554
  return {
563
555
  token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-vfour.250",
3
+ "version": "3.0.0-vfour.251",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.cjs",