@gearbox-protocol/sdk 3.0.0-next.19 → 3.0.0-next.20

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.
@@ -194,7 +194,7 @@ class CreditAccountData {
194
194
  }
195
195
  static calcHealthFactor({ assets, quotas, liquidationThresholds, underlyingToken, borrowed, prices, }) {
196
196
  const [, underlyingDecimals] = (0, sdk_gov_1.extractTokenData)(underlyingToken);
197
- const underlyingPrice = prices[underlyingToken];
197
+ const underlyingPrice = prices[underlyingToken] || 0n;
198
198
  const assetLTMoney = assets.reduce((acc, { token: tokenAddress, balance: amount }) => {
199
199
  const [, tokenDecimals] = (0, sdk_gov_1.extractTokenData)(tokenAddress);
200
200
  const lt = liquidationThresholds[tokenAddress] || 0n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.19",
3
+ "version": "3.0.0-next.20",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",