@defisaver/positions-sdk 0.0.192 → 0.0.194

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.
@@ -186,6 +186,7 @@ const getMorphoAaveV3MarketsData = (web3, network, selectedMarket, mainnetWeb3)
186
186
  usageAsCollateralEnabled: marketData.isCollateral,
187
187
  collateralFactor: marketData.isCollateral ? new decimal_js_1.default(marketData.collateralFactor).div(10000).toString() : '0',
188
188
  liquidationRatio: new decimal_js_1.default(marketData.liquidationRatio).div(10000).toString(),
189
+ liquidationBonus: new decimal_js_1.default(marketData.liquidationBonus).div(10000).toString(),
189
190
  isInactive: !marketData.isActive,
190
191
  isFrozen: marketData.isFrozen,
191
192
  isPaused: marketData.isPaused,
@@ -93,6 +93,7 @@ export interface AaveV3AssetData extends AaveAssetData {
93
93
  isPaused: boolean;
94
94
  isFlashLoanEnabled: boolean;
95
95
  assetId: string | null;
96
+ liquidationBonus: string;
96
97
  supplyIncentives?: IncentiveData[];
97
98
  borrowIncentives?: IncentiveData[];
98
99
  }
@@ -180,6 +180,7 @@ export const getMorphoAaveV3MarketsData = (web3, network, selectedMarket, mainne
180
180
  usageAsCollateralEnabled: marketData.isCollateral,
181
181
  collateralFactor: marketData.isCollateral ? new Dec(marketData.collateralFactor).div(10000).toString() : '0',
182
182
  liquidationRatio: new Dec(marketData.liquidationRatio).div(10000).toString(),
183
+ liquidationBonus: new Dec(marketData.liquidationBonus).div(10000).toString(),
183
184
  isInactive: !marketData.isActive,
184
185
  isFrozen: marketData.isFrozen,
185
186
  isPaused: marketData.isPaused,
@@ -93,6 +93,7 @@ export interface AaveV3AssetData extends AaveAssetData {
93
93
  isPaused: boolean;
94
94
  isFlashLoanEnabled: boolean;
95
95
  assetId: string | null;
96
+ liquidationBonus: string;
96
97
  supplyIncentives?: IncentiveData[];
97
98
  borrowIncentives?: IncentiveData[];
98
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "0.0.192",
3
+ "version": "0.0.194",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -272,6 +272,7 @@ export const getMorphoAaveV3MarketsData = async (web3: Web3, network: NetworkNum
272
272
  usageAsCollateralEnabled: marketData.isCollateral,
273
273
  collateralFactor: marketData.isCollateral ? new Dec(marketData.collateralFactor).div(10000).toString() : '0',
274
274
  liquidationRatio: new Dec(marketData.liquidationRatio).div(10000).toString(),
275
+ liquidationBonus: new Dec(marketData.liquidationBonus).div(10000).toString(),
275
276
  isInactive: !marketData.isActive,
276
277
  isFrozen: marketData.isFrozen,
277
278
  isPaused: marketData.isPaused,
package/src/types/aave.ts CHANGED
@@ -105,6 +105,7 @@ export interface AaveV3AssetData extends AaveAssetData {
105
105
  isPaused: boolean,
106
106
  isFlashLoanEnabled: boolean,
107
107
  assetId: string | null,
108
+ liquidationBonus: string,
108
109
  supplyIncentives?: IncentiveData[];
109
110
  borrowIncentives?: IncentiveData[];
110
111
  }