@carrot-protocol/boost-http-client 0.2.15-group-refactor1-dev-54bdd58 → 0.2.15-group-refactor1-dev-dee3e7b
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 +1 -2
- package/dist/types.d.ts +1 -2
- package/package.json +1 -1
- package/src/index.ts +1 -2
- package/src/types.ts +1 -2
package/dist/index.js
CHANGED
|
@@ -133,12 +133,10 @@ class Client {
|
|
|
133
133
|
assetBalance: new anchor_1.BN(b.assetBalance, "hex"),
|
|
134
134
|
assetBalanceUi: Number(b.assetBalanceUi),
|
|
135
135
|
assetValue: Number(b.assetValue),
|
|
136
|
-
assetYieldBps: Number(b.assetYieldBps),
|
|
137
136
|
assetYieldApy: Number(b.assetYieldApy),
|
|
138
137
|
liabilityBalance: new anchor_1.BN(b.liabilityBalance, "hex"),
|
|
139
138
|
liabilityBalanceUi: Number(b.liabilityBalanceUi),
|
|
140
139
|
liabilityValue: Number(b.liabilityValue),
|
|
141
|
-
liabilityBorrowCostBps: Number(b.liabilityBorrowCostBps),
|
|
142
140
|
liabilityBorrowCostApy: Number(b.liabilityBorrowCostApy),
|
|
143
141
|
price: Number(b.price),
|
|
144
142
|
liquidation,
|
|
@@ -400,6 +398,7 @@ function parseBank(bankJson) {
|
|
|
400
398
|
assetMaintWeight: Number(bankJson.assetMaintWeight),
|
|
401
399
|
totalAssetShares: Number(bankJson.totalAssetShares),
|
|
402
400
|
assetShareValue: Number(bankJson.assetShareValue),
|
|
401
|
+
assetYieldApy: Number(bankJson.assetYieldApy),
|
|
403
402
|
liabilityAmount: new anchor_1.BN(bankJson.liabilityAmount, "hex"),
|
|
404
403
|
liabilityAmountUi: Number(bankJson.liabilityAmountUi),
|
|
405
404
|
liabilityInitWeight: Number(bankJson.liabilityInitWeight),
|
package/dist/types.d.ts
CHANGED
|
@@ -117,12 +117,10 @@ export interface ClendAccountBalance {
|
|
|
117
117
|
assetBalance: BN;
|
|
118
118
|
assetBalanceUi: number;
|
|
119
119
|
assetValue: number;
|
|
120
|
-
assetYieldBps: number;
|
|
121
120
|
assetYieldApy: number;
|
|
122
121
|
liabilityBalance: BN;
|
|
123
122
|
liabilityBalanceUi: number;
|
|
124
123
|
liabilityValue: number;
|
|
125
|
-
liabilityBorrowCostBps: number;
|
|
126
124
|
liabilityBorrowCostApy: number;
|
|
127
125
|
price: number;
|
|
128
126
|
liquidation: ClendAccountAssetLiquidation | null;
|
|
@@ -147,6 +145,7 @@ export interface Bank {
|
|
|
147
145
|
assetMaintWeight: number;
|
|
148
146
|
totalAssetShares: number;
|
|
149
147
|
assetShareValue: number;
|
|
148
|
+
assetYieldApy: number;
|
|
150
149
|
liabilityAmount: BN;
|
|
151
150
|
liabilityAmountUi: number;
|
|
152
151
|
liabilityInitWeight: number;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -154,12 +154,10 @@ export class Client {
|
|
|
154
154
|
assetBalance: new BN(b.assetBalance, "hex"),
|
|
155
155
|
assetBalanceUi: Number(b.assetBalanceUi),
|
|
156
156
|
assetValue: Number(b.assetValue),
|
|
157
|
-
assetYieldBps: Number(b.assetYieldBps),
|
|
158
157
|
assetYieldApy: Number(b.assetYieldApy),
|
|
159
158
|
liabilityBalance: new BN(b.liabilityBalance, "hex"),
|
|
160
159
|
liabilityBalanceUi: Number(b.liabilityBalanceUi),
|
|
161
160
|
liabilityValue: Number(b.liabilityValue),
|
|
162
|
-
liabilityBorrowCostBps: Number(b.liabilityBorrowCostBps),
|
|
163
161
|
liabilityBorrowCostApy: Number(b.liabilityBorrowCostApy),
|
|
164
162
|
price: Number(b.price),
|
|
165
163
|
liquidation,
|
|
@@ -530,6 +528,7 @@ function parseBank(bankJson: any): Bank {
|
|
|
530
528
|
assetMaintWeight: Number(bankJson.assetMaintWeight),
|
|
531
529
|
totalAssetShares: Number(bankJson.totalAssetShares),
|
|
532
530
|
assetShareValue: Number(bankJson.assetShareValue),
|
|
531
|
+
assetYieldApy: Number(bankJson.assetYieldApy),
|
|
533
532
|
liabilityAmount: new BN(bankJson.liabilityAmount, "hex"),
|
|
534
533
|
liabilityAmountUi: Number(bankJson.liabilityAmountUi),
|
|
535
534
|
liabilityInitWeight: Number(bankJson.liabilityInitWeight),
|
package/src/types.ts
CHANGED
|
@@ -134,12 +134,10 @@ export interface ClendAccountBalance {
|
|
|
134
134
|
assetBalance: BN;
|
|
135
135
|
assetBalanceUi: number;
|
|
136
136
|
assetValue: number;
|
|
137
|
-
assetYieldBps: number;
|
|
138
137
|
assetYieldApy: number;
|
|
139
138
|
liabilityBalance: BN;
|
|
140
139
|
liabilityBalanceUi: number;
|
|
141
140
|
liabilityValue: number;
|
|
142
|
-
liabilityBorrowCostBps: number;
|
|
143
141
|
liabilityBorrowCostApy: number;
|
|
144
142
|
price: number;
|
|
145
143
|
liquidation: ClendAccountAssetLiquidation | null;
|
|
@@ -167,6 +165,7 @@ export interface Bank {
|
|
|
167
165
|
assetMaintWeight: number;
|
|
168
166
|
totalAssetShares: number;
|
|
169
167
|
assetShareValue: number;
|
|
168
|
+
assetYieldApy: number;
|
|
170
169
|
liabilityAmount: BN;
|
|
171
170
|
liabilityAmountUi: number;
|
|
172
171
|
liabilityInitWeight: number;
|