@carrot-protocol/boost-http-client 0.2.3-withdraw-jlp-dev-c39f2a4 → 0.2.3-withdraw-jlp-dev-e591dae

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.
package/dist/index.js CHANGED
@@ -292,5 +292,9 @@ function parseBank(bankJson) {
292
292
  liabilityAmount: new anchor_1.BN(bankJson.liabilityAmount, "hex"),
293
293
  liabilityAmountUi: Number(bankJson.liabilityAmountUi),
294
294
  price: Number(bankJson.price),
295
+ depositLimit: new anchor_1.BN(bankJson.depositLimit, "hex"),
296
+ depositLimitUi: Number(bankJson.depositLimitUi),
297
+ borrowLimit: new anchor_1.BN(bankJson.borrowLimit, "hex"),
298
+ borrowLimitUi: Number(bankJson.borrowLimitUi),
295
299
  };
296
300
  }
package/dist/types.d.ts CHANGED
@@ -104,6 +104,10 @@ export interface Bank {
104
104
  liabilityAmount: BN;
105
105
  liabilityAmountUi: number;
106
106
  price: number;
107
+ depositLimit: BN;
108
+ depositLimitUi: number;
109
+ borrowLimit: BN;
110
+ borrowLimitUi: number;
107
111
  }
108
112
  export interface ClendAccountEvent {
109
113
  txSig: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/boost-http-client",
3
- "version": "0.2.3-withdraw-jlp-dev-c39f2a4",
3
+ "version": "0.2.3-withdraw-jlp-dev-e591dae",
4
4
  "description": "HTTP client for Carrot Boost API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -383,5 +383,9 @@ function parseBank(bankJson: any): Bank {
383
383
  liabilityAmount: new BN(bankJson.liabilityAmount, "hex"),
384
384
  liabilityAmountUi: Number(bankJson.liabilityAmountUi),
385
385
  price: Number(bankJson.price),
386
+ depositLimit: new BN(bankJson.depositLimit, "hex"),
387
+ depositLimitUi: Number(bankJson.depositLimitUi),
388
+ borrowLimit: new BN(bankJson.borrowLimit, "hex"),
389
+ borrowLimitUi: Number(bankJson.borrowLimitUi),
386
390
  };
387
391
  }
package/src/types.ts CHANGED
@@ -120,6 +120,10 @@ export interface Bank {
120
120
  liabilityAmount: BN;
121
121
  liabilityAmountUi: number;
122
122
  price: number;
123
+ depositLimit: BN;
124
+ depositLimitUi: number;
125
+ borrowLimit: BN;
126
+ borrowLimitUi: number;
123
127
  }
124
128
 
125
129
  export interface ClendAccountEvent {