@carrot-protocol/boost-http-client 0.2.15-group-refactor1-dev-ae9b5d7 → 0.2.15-group-refactor1-dev-5b98a64

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,7 @@ class Client {
127
127
  changePercentage: Number(b.liquidation.changePercentage),
128
128
  }
129
129
  : null;
130
+ const emissionsOutstandingAndUnclaimed = new anchor_1.BN(b.emissionsOutstandingAndUnclaimed, "hex");
130
131
  return {
131
132
  mint: new anchor_1.web3.PublicKey(b.mint),
132
133
  bank: new anchor_1.web3.PublicKey(b.bank),
@@ -140,7 +141,7 @@ class Client {
140
141
  liabilityValue: Number(b.liabilityValue),
141
142
  liabilityBorrowCostApy: Number(b.liabilityBorrowCostApy),
142
143
  liabilityEmissionsApy: Number(b.liabilityEmissionsApy),
143
- emissionsOutstandingAndUnclaimed: new anchor_1.BN(b.emissionsOutstandingAndUnclaimed, "hex"),
144
+ emissionsOutstandingAndUnclaimed,
144
145
  price: Number(b.price),
145
146
  liquidation,
146
147
  };
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-ae9b5d7",
3
+ "version": "0.2.15-group-refactor1-dev-5b98a64",
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,11 @@ export class Client {
152
152
  }
153
153
  : null;
154
154
 
155
+ const emissionsOutstandingAndUnclaimed = new BN(
156
+ b.emissionsOutstandingAndUnclaimed,
157
+ "hex",
158
+ );
159
+
155
160
  return {
156
161
  mint: new web3.PublicKey(b.mint),
157
162
  bank: new web3.PublicKey(b.bank),
@@ -165,10 +170,7 @@ export class Client {
165
170
  liabilityValue: Number(b.liabilityValue),
166
171
  liabilityBorrowCostApy: Number(b.liabilityBorrowCostApy),
167
172
  liabilityEmissionsApy: Number(b.liabilityEmissionsApy),
168
- emissionsOutstandingAndUnclaimed: new BN(
169
- b.emissionsOutstandingAndUnclaimed,
170
- "hex",
171
- ),
173
+ emissionsOutstandingAndUnclaimed,
172
174
  price: Number(b.price),
173
175
  liquidation,
174
176
  };