@defisaver/positions-sdk 1.0.11-fluid-dev7 → 1.0.11-fluid-dev8

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.
@@ -206,6 +206,7 @@ const parseT1MarketData = (web3, data, network, mainnetWeb3) => __awaiter(void 0
206
206
  liquidationMaxLimit,
207
207
  borrowRate,
208
208
  supplyRate,
209
+ oraclePrice,
209
210
  };
210
211
  return {
211
212
  assetsData,
@@ -323,6 +324,7 @@ const parseT2MarketData = (web3, data, network, mainnetWeb3) => __awaiter(void 0
323
324
  widthdrawableDex: new decimal_js_1.default(maxSupplyShares).minus(totalSupplyShares).toString(),
324
325
  maxSupplyShares,
325
326
  collDexFee: supplyDexFee,
327
+ oraclePrice,
326
328
  };
327
329
  return {
328
330
  assetsData,
@@ -438,6 +440,7 @@ const parseT3MarketData = (web3, data, network, mainnetWeb3) => __awaiter(void 0
438
440
  maxBorrowSharesUsd,
439
441
  borrowDexFee,
440
442
  debtSharePrice,
443
+ oraclePrice,
441
444
  };
442
445
  return {
443
446
  assetsData,
@@ -589,6 +592,7 @@ const parseT4MarketData = (web3, data, network, mainnetWeb3) => __awaiter(void 0
589
592
  collDexFee: supplyDexFee,
590
593
  collSharePrice,
591
594
  debtSharePrice,
595
+ oraclePrice,
592
596
  };
593
597
  return {
594
598
  assetsData,
@@ -240,6 +240,7 @@ export interface InnerFluidMarketData {
240
240
  supplyRate: string;
241
241
  borrowRate: string;
242
242
  liquidationMaxLimit: string;
243
+ oraclePrice: string;
243
244
  collSharePrice?: string;
244
245
  maxSupplyShares?: string;
245
246
  maxSupplySharesUsd?: string;
@@ -200,6 +200,7 @@ const parseT1MarketData = (web3, data, network, mainnetWeb3) => __awaiter(void 0
200
200
  liquidationMaxLimit,
201
201
  borrowRate,
202
202
  supplyRate,
203
+ oraclePrice,
203
204
  };
204
205
  return {
205
206
  assetsData,
@@ -317,6 +318,7 @@ const parseT2MarketData = (web3, data, network, mainnetWeb3) => __awaiter(void 0
317
318
  widthdrawableDex: new Dec(maxSupplyShares).minus(totalSupplyShares).toString(),
318
319
  maxSupplyShares,
319
320
  collDexFee: supplyDexFee,
321
+ oraclePrice,
320
322
  };
321
323
  return {
322
324
  assetsData,
@@ -432,6 +434,7 @@ const parseT3MarketData = (web3, data, network, mainnetWeb3) => __awaiter(void 0
432
434
  maxBorrowSharesUsd,
433
435
  borrowDexFee,
434
436
  debtSharePrice,
437
+ oraclePrice,
435
438
  };
436
439
  return {
437
440
  assetsData,
@@ -583,6 +586,7 @@ const parseT4MarketData = (web3, data, network, mainnetWeb3) => __awaiter(void 0
583
586
  collDexFee: supplyDexFee,
584
587
  collSharePrice,
585
588
  debtSharePrice,
589
+ oraclePrice,
586
590
  };
587
591
  return {
588
592
  assetsData,
@@ -240,6 +240,7 @@ export interface InnerFluidMarketData {
240
240
  supplyRate: string;
241
241
  borrowRate: string;
242
242
  liquidationMaxLimit: string;
243
+ oraclePrice: string;
243
244
  collSharePrice?: string;
244
245
  maxSupplyShares?: string;
245
246
  maxSupplySharesUsd?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defisaver/positions-sdk",
3
- "version": "1.0.11-fluid-dev7",
3
+ "version": "1.0.11-fluid-dev8",
4
4
  "description": "",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
@@ -250,6 +250,7 @@ const parseT1MarketData = async (web3: Web3, data: FluidView.VaultDataStructOutp
250
250
  liquidationMaxLimit,
251
251
  borrowRate,
252
252
  supplyRate,
253
+ oraclePrice,
253
254
  };
254
255
 
255
256
  return {
@@ -403,6 +404,7 @@ const parseT2MarketData = async (web3: Web3, data: FluidView.VaultDataStructOutp
403
404
  widthdrawableDex: new Dec(maxSupplyShares).minus(totalSupplyShares).toString(),
404
405
  maxSupplyShares,
405
406
  collDexFee: supplyDexFee,
407
+ oraclePrice,
406
408
  };
407
409
 
408
410
  return {
@@ -557,6 +559,7 @@ const parseT3MarketData = async (web3: Web3, data: FluidView.VaultDataStructOutp
557
559
  maxBorrowSharesUsd,
558
560
  borrowDexFee,
559
561
  debtSharePrice,
562
+ oraclePrice,
560
563
  };
561
564
 
562
565
  return {
@@ -768,6 +771,7 @@ const parseT4MarketData = async (web3: Web3, data: FluidView.VaultDataStructOutp
768
771
  collDexFee: supplyDexFee,
769
772
  collSharePrice,
770
773
  debtSharePrice,
774
+ oraclePrice,
771
775
  };
772
776
 
773
777
  return {
@@ -251,6 +251,7 @@ export interface InnerFluidMarketData {
251
251
  supplyRate: string,
252
252
  borrowRate: string,
253
253
  liquidationMaxLimit: string,
254
+ oraclePrice: string,
254
255
  // T2 and T4 vaults
255
256
  collSharePrice?: string,
256
257
  maxSupplyShares?: string,