@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.
- package/dist/cjs/sdk/index.cjs +7 -3
- package/dist/esm/sdk/index.mjs +7 -3
- package/package.json +1 -1
package/dist/cjs/sdk/index.cjs
CHANGED
|
@@ -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
|
-
|
|
58243
|
-
|
|
58242
|
+
availableToBorrow: formatBNvalue(
|
|
58243
|
+
available,
|
|
58244
|
+
this.decimals,
|
|
58245
|
+
2,
|
|
58246
|
+
raw
|
|
58247
|
+
)
|
|
58244
58248
|
}
|
|
58245
58249
|
])
|
|
58246
58250
|
),
|
package/dist/esm/sdk/index.mjs
CHANGED
|
@@ -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
|
-
|
|
58241
|
-
|
|
58240
|
+
availableToBorrow: formatBNvalue(
|
|
58241
|
+
available,
|
|
58242
|
+
this.decimals,
|
|
58243
|
+
2,
|
|
58244
|
+
raw
|
|
58245
|
+
)
|
|
58242
58246
|
}
|
|
58243
58247
|
])
|
|
58244
58248
|
),
|