@gearbox-protocol/sdk 1.19.1 → 1.19.3

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.
@@ -14,6 +14,7 @@ export declare class CreditAccountData {
14
14
  readonly since: number;
15
15
  readonly cumulativeIndexAtOpen: BigNumber;
16
16
  readonly borrowedAmount: BigNumber;
17
+ readonly borrowedAmountPlusInterestAndFees: BigNumber;
17
18
  borrowedAmountPlusInterest: BigNumber;
18
19
  totalValue: BigNumber;
19
20
  healthFactor: number;
@@ -25,6 +25,8 @@ var CreditAccountData = /** @class */ (function () {
25
25
  this.cumulativeIndexAtOpen = payload.cumulativeIndexAtOpen;
26
26
  this.borrowedAmount = payload.borrowedAmount;
27
27
  this.borrowedAmountPlusInterest = payload.borrowedAmountPlusInterest;
28
+ this.borrowedAmountPlusInterestAndFees =
29
+ payload.borrowedAmountPlusInterestAndFees;
28
30
  this.totalValue = payload.totalValue;
29
31
  this.healthFactor = payload.healthFactor.toNumber();
30
32
  this.borrowRate = payload.borrowRate
@@ -42,7 +42,8 @@ export declare type PriceFeedData = {
42
42
  upperBound: BigNumber;
43
43
  } | {
44
44
  type: OracleType.COMPOSITE_ORACLE;
45
- ethPriceFeed: Record<NetworkType, string>;
45
+ targetToBasePriceFeed: Record<NetworkType, string>;
46
+ baseToUsdPriceFeed: Record<NetworkType, string>;
46
47
  };
47
48
  export interface TokenPriceFeedData {
48
49
  priceFeedETH?: PriceFeedData;
@@ -215,8 +215,12 @@ exports.priceFeedsByNetwork = {
215
215
  },
216
216
  },
217
217
  priceFeedUSD: {
218
- type: oracles_1.OracleType.CHAINLINK_ORACLE,
219
- address: {
218
+ type: oracles_1.OracleType.COMPOSITE_ORACLE,
219
+ targetToBasePriceFeed: {
220
+ Mainnet: "0xfdfd9c85ad200c506cf9e21f1fd8dd01932fbb23",
221
+ Goerli: "",
222
+ },
223
+ baseToUsdPriceFeed: {
220
224
  Mainnet: "0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c",
221
225
  Goerli: "0x048F634279BE1CC4De3F17fD4c31101bAD0826c8",
222
226
  },
@@ -258,10 +262,14 @@ exports.priceFeedsByNetwork = {
258
262
  },
259
263
  priceFeedUSD: {
260
264
  type: oracles_1.OracleType.COMPOSITE_ORACLE,
261
- ethPriceFeed: {
265
+ targetToBasePriceFeed: {
262
266
  Mainnet: "0x86392dC19c0b719886221c78AB11eb8Cf5c52812",
263
267
  Goerli: "0x78622A939324C5dC1B646D113358f54f0BA4353B",
264
268
  },
269
+ baseToUsdPriceFeed: {
270
+ Mainnet: "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419",
271
+ Goerli: "0x491741d9F426130d1bC27Aee82f8b4Bd4E6E5f5D",
272
+ },
265
273
  },
266
274
  },
267
275
  wstETH: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "1.19.1",
3
+ "version": "1.19.3",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",