@gearbox-protocol/sdk 3.0.0-vfour.141 → 3.0.0-vfour.142

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.
@@ -58234,13 +58234,17 @@ var PoolContract = class extends BaseContract {
58234
58234
  totalBorrowed: formatBNvalue(this.totalBorrowed, this.decimals, 2, raw),
58235
58235
  totalDebtLimit: formatBNvalue(this.totalDebtLimit, this.decimals, 2, raw),
58236
58236
  creditManagerDebtParams: Object.fromEntries(
58237
- this.creditManagerDebtParams.values().map(({ creditManager, borrowed, limit }) => [
58237
+ this.creditManagerDebtParams.values().map(({ creditManager, borrowed, limit, available }) => [
58238
58238
  this.labelAddress(creditManager),
58239
58239
  {
58240
58240
  borrowed: formatBNvalue(borrowed, this.decimals, 2, raw),
58241
58241
  limit: formatBNvalue(limit, this.decimals, 2, raw),
58242
- // TODO: availableToBorrow is gone from MarketCompressor
58243
- availableToBorrow: ""
58242
+ availableToBorrow: formatBNvalue(
58243
+ available,
58244
+ this.decimals,
58245
+ 2,
58246
+ raw
58247
+ )
58244
58248
  }
58245
58249
  ])
58246
58250
  ),
@@ -58232,13 +58232,17 @@ var PoolContract = class extends BaseContract {
58232
58232
  totalBorrowed: formatBNvalue(this.totalBorrowed, this.decimals, 2, raw),
58233
58233
  totalDebtLimit: formatBNvalue(this.totalDebtLimit, this.decimals, 2, raw),
58234
58234
  creditManagerDebtParams: Object.fromEntries(
58235
- this.creditManagerDebtParams.values().map(({ creditManager, borrowed, limit }) => [
58235
+ this.creditManagerDebtParams.values().map(({ creditManager, borrowed, limit, available }) => [
58236
58236
  this.labelAddress(creditManager),
58237
58237
  {
58238
58238
  borrowed: formatBNvalue(borrowed, this.decimals, 2, raw),
58239
58239
  limit: formatBNvalue(limit, this.decimals, 2, raw),
58240
- // TODO: availableToBorrow is gone from MarketCompressor
58241
- availableToBorrow: ""
58240
+ availableToBorrow: formatBNvalue(
58241
+ available,
58242
+ this.decimals,
58243
+ 2,
58244
+ raw
58245
+ )
58242
58246
  }
58243
58247
  ])
58244
58248
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-vfour.141",
3
+ "version": "3.0.0-vfour.142",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.cjs",