@carrot-protocol/boost-http-client 0.2.15-group-refactor1-dev-ea8a618 → 0.2.15-group-refactor1-dev-0cb36de

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
@@ -127,6 +127,11 @@ class Client {
127
127
  changePercentage: Number(b.liquidation.changePercentage),
128
128
  }
129
129
  : null;
130
+ //const emissionsOutstandingAndUnclaimed = new BN(
131
+ // b.emissionsOutstandingAndUnclaimed,
132
+ // "hex",
133
+ //);
134
+ const emissionsOutstandingAndUnclaimed = new anchor_1.BN(b.emissionsOutstandingAndUnclaimed, "hex");
130
135
  return {
131
136
  mint: new anchor_1.web3.PublicKey(b.mint),
132
137
  bank: new anchor_1.web3.PublicKey(b.bank),
@@ -140,6 +145,7 @@ class Client {
140
145
  liabilityValue: Number(b.liabilityValue),
141
146
  liabilityBorrowCostApy: Number(b.liabilityBorrowCostApy),
142
147
  liabilityEmissionsApy: Number(b.liabilityEmissionsApy),
148
+ emissionsOutstandingAndUnclaimed,
143
149
  price: Number(b.price),
144
150
  liquidation,
145
151
  };
package/dist/types.d.ts CHANGED
@@ -138,6 +138,7 @@ export interface ClendAccountBalance {
138
138
  liabilityValue: number;
139
139
  liabilityBorrowCostApy: number;
140
140
  liabilityEmissionsApy: number;
141
+ emissionsOutstandingAndUnclaimed: BN;
141
142
  price: number;
142
143
  liquidation: ClendAccountAssetLiquidation | null;
143
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/boost-http-client",
3
- "version": "0.2.15-group-refactor1-dev-ea8a618",
3
+ "version": "0.2.15-group-refactor1-dev-0cb36de",
4
4
  "description": "HTTP client for Carrot Boost",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -152,6 +152,15 @@ export class Client {
152
152
  }
153
153
  : null;
154
154
 
155
+ //const emissionsOutstandingAndUnclaimed = new BN(
156
+ // b.emissionsOutstandingAndUnclaimed,
157
+ // "hex",
158
+ //);
159
+ const emissionsOutstandingAndUnclaimed = new BN(
160
+ b.emissionsOutstandingAndUnclaimed,
161
+ "hex",
162
+ );
163
+
155
164
  return {
156
165
  mint: new web3.PublicKey(b.mint),
157
166
  bank: new web3.PublicKey(b.bank),
@@ -165,6 +174,7 @@ export class Client {
165
174
  liabilityValue: Number(b.liabilityValue),
166
175
  liabilityBorrowCostApy: Number(b.liabilityBorrowCostApy),
167
176
  liabilityEmissionsApy: Number(b.liabilityEmissionsApy),
177
+ emissionsOutstandingAndUnclaimed,
168
178
  price: Number(b.price),
169
179
  liquidation,
170
180
  };
package/src/types.ts CHANGED
@@ -157,6 +157,7 @@ export interface ClendAccountBalance {
157
157
  liabilityValue: number;
158
158
  liabilityBorrowCostApy: number;
159
159
  liabilityEmissionsApy: number;
160
+ emissionsOutstandingAndUnclaimed: BN;
160
161
  price: number;
161
162
  liquidation: ClendAccountAssetLiquidation | null;
162
163
  }