@defisaver/positions-sdk 1.0.7 → 1.0.8

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.
@@ -423,7 +423,7 @@ const getAaveV3AccountData = (web3, network, address, extractedState) => __await
423
423
  }
424
424
  if (!usedAssets[asset])
425
425
  usedAssets[asset] = {};
426
- const nativeAsset = asset === 'GHO' && network === common_1.NetworkNumber.Eth;
426
+ const nativeAsset = asset === 'GHO' && network === common_1.NetworkNumber.Eth && market.value === 'v3default';
427
427
  let discountRateOnBorrow = '0';
428
428
  const borrowed = new decimal_js_1.default(borrowedStable).add(borrowedVariable).toString();
429
429
  if (nativeAsset && new decimal_js_1.default(borrowed).gt(0) && new decimal_js_1.default(stkAaveBalance).gt(0)) {
@@ -412,7 +412,7 @@ export const getAaveV3AccountData = (web3, network, address, extractedState) =>
412
412
  }
413
413
  if (!usedAssets[asset])
414
414
  usedAssets[asset] = {};
415
- const nativeAsset = asset === 'GHO' && network === NetworkNumber.Eth;
415
+ const nativeAsset = asset === 'GHO' && network === NetworkNumber.Eth && market.value === 'v3default';
416
416
  let discountRateOnBorrow = '0';
417
417
  const borrowed = new Dec(borrowedStable).add(borrowedVariable).toString();
418
418
  if (nativeAsset && new Dec(borrowed).gt(0) && new Dec(stkAaveBalance).gt(0)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -543,7 +543,7 @@ export const getAaveV3AccountData = async (web3: Web3, network: NetworkNumber, a
543
543
  interestMode = 'both';
544
544
  }
545
545
  if (!usedAssets[asset]) usedAssets[asset] = {} as AaveV3UsedAsset;
546
- const nativeAsset = asset === 'GHO' && network === NetworkNumber.Eth;
546
+ const nativeAsset = asset === 'GHO' && network === NetworkNumber.Eth && market.value === 'v3default';
547
547
 
548
548
  let discountRateOnBorrow = '0';
549
549
  const borrowed = new Dec(borrowedStable).add(borrowedVariable).toString();