@carrot-protocol/boost-http-client 0.2.15-group-refactor1-dev-dee3e7b → 0.2.15-group-refactor1-dev-fd4d1cc
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 +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/types.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -130,10 +130,10 @@ class Client {
|
|
|
130
130
|
return {
|
|
131
131
|
mint: new anchor_1.web3.PublicKey(b.mint),
|
|
132
132
|
bank: new anchor_1.web3.PublicKey(b.bank),
|
|
133
|
+
tokenYieldApy: Number(b.assetYieldApy),
|
|
133
134
|
assetBalance: new anchor_1.BN(b.assetBalance, "hex"),
|
|
134
135
|
assetBalanceUi: Number(b.assetBalanceUi),
|
|
135
136
|
assetValue: Number(b.assetValue),
|
|
136
|
-
assetYieldApy: Number(b.assetYieldApy),
|
|
137
137
|
liabilityBalance: new anchor_1.BN(b.liabilityBalance, "hex"),
|
|
138
138
|
liabilityBalanceUi: Number(b.liabilityBalanceUi),
|
|
139
139
|
liabilityValue: Number(b.liabilityValue),
|
|
@@ -398,7 +398,7 @@ function parseBank(bankJson) {
|
|
|
398
398
|
assetMaintWeight: Number(bankJson.assetMaintWeight),
|
|
399
399
|
totalAssetShares: Number(bankJson.totalAssetShares),
|
|
400
400
|
assetShareValue: Number(bankJson.assetShareValue),
|
|
401
|
-
|
|
401
|
+
tokenYieldApy: Number(bankJson.tokenYieldApy),
|
|
402
402
|
liabilityAmount: new anchor_1.BN(bankJson.liabilityAmount, "hex"),
|
|
403
403
|
liabilityAmountUi: Number(bankJson.liabilityAmountUi),
|
|
404
404
|
liabilityInitWeight: Number(bankJson.liabilityInitWeight),
|
package/dist/types.d.ts
CHANGED
|
@@ -114,10 +114,10 @@ export interface ClendAccount {
|
|
|
114
114
|
export interface ClendAccountBalance {
|
|
115
115
|
mint: web3.PublicKey;
|
|
116
116
|
bank: web3.PublicKey;
|
|
117
|
+
tokenYieldApy: number;
|
|
117
118
|
assetBalance: BN;
|
|
118
119
|
assetBalanceUi: number;
|
|
119
120
|
assetValue: number;
|
|
120
|
-
assetYieldApy: number;
|
|
121
121
|
liabilityBalance: BN;
|
|
122
122
|
liabilityBalanceUi: number;
|
|
123
123
|
liabilityValue: number;
|
|
@@ -136,6 +136,7 @@ export interface Bank {
|
|
|
136
136
|
group: web3.PublicKey;
|
|
137
137
|
key: web3.PublicKey;
|
|
138
138
|
mint: web3.PublicKey;
|
|
139
|
+
tokenYieldApy: number;
|
|
139
140
|
supplyApy: number;
|
|
140
141
|
borrowApy: number;
|
|
141
142
|
utilizationRate: number;
|
|
@@ -145,7 +146,6 @@ export interface Bank {
|
|
|
145
146
|
assetMaintWeight: number;
|
|
146
147
|
totalAssetShares: number;
|
|
147
148
|
assetShareValue: number;
|
|
148
|
-
assetYieldApy: number;
|
|
149
149
|
liabilityAmount: BN;
|
|
150
150
|
liabilityAmountUi: number;
|
|
151
151
|
liabilityInitWeight: number;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -151,10 +151,10 @@ export class Client {
|
|
|
151
151
|
return {
|
|
152
152
|
mint: new web3.PublicKey(b.mint),
|
|
153
153
|
bank: new web3.PublicKey(b.bank),
|
|
154
|
+
tokenYieldApy: Number(b.assetYieldApy),
|
|
154
155
|
assetBalance: new BN(b.assetBalance, "hex"),
|
|
155
156
|
assetBalanceUi: Number(b.assetBalanceUi),
|
|
156
157
|
assetValue: Number(b.assetValue),
|
|
157
|
-
assetYieldApy: Number(b.assetYieldApy),
|
|
158
158
|
liabilityBalance: new BN(b.liabilityBalance, "hex"),
|
|
159
159
|
liabilityBalanceUi: Number(b.liabilityBalanceUi),
|
|
160
160
|
liabilityValue: Number(b.liabilityValue),
|
|
@@ -528,7 +528,7 @@ function parseBank(bankJson: any): Bank {
|
|
|
528
528
|
assetMaintWeight: Number(bankJson.assetMaintWeight),
|
|
529
529
|
totalAssetShares: Number(bankJson.totalAssetShares),
|
|
530
530
|
assetShareValue: Number(bankJson.assetShareValue),
|
|
531
|
-
|
|
531
|
+
tokenYieldApy: Number(bankJson.tokenYieldApy),
|
|
532
532
|
liabilityAmount: new BN(bankJson.liabilityAmount, "hex"),
|
|
533
533
|
liabilityAmountUi: Number(bankJson.liabilityAmountUi),
|
|
534
534
|
liabilityInitWeight: Number(bankJson.liabilityInitWeight),
|
package/src/types.ts
CHANGED
|
@@ -131,10 +131,10 @@ export interface ClendAccount {
|
|
|
131
131
|
export interface ClendAccountBalance {
|
|
132
132
|
mint: web3.PublicKey;
|
|
133
133
|
bank: web3.PublicKey;
|
|
134
|
+
tokenYieldApy: number;
|
|
134
135
|
assetBalance: BN;
|
|
135
136
|
assetBalanceUi: number;
|
|
136
137
|
assetValue: number;
|
|
137
|
-
assetYieldApy: number;
|
|
138
138
|
liabilityBalance: BN;
|
|
139
139
|
liabilityBalanceUi: number;
|
|
140
140
|
liabilityValue: number;
|
|
@@ -156,6 +156,7 @@ export interface Bank {
|
|
|
156
156
|
group: web3.PublicKey;
|
|
157
157
|
key: web3.PublicKey;
|
|
158
158
|
mint: web3.PublicKey;
|
|
159
|
+
tokenYieldApy: number;
|
|
159
160
|
supplyApy: number;
|
|
160
161
|
borrowApy: number;
|
|
161
162
|
utilizationRate: number;
|
|
@@ -165,7 +166,6 @@ export interface Bank {
|
|
|
165
166
|
assetMaintWeight: number;
|
|
166
167
|
totalAssetShares: number;
|
|
167
168
|
assetShareValue: number;
|
|
168
|
-
assetYieldApy: number;
|
|
169
169
|
liabilityAmount: BN;
|
|
170
170
|
liabilityAmountUi: number;
|
|
171
171
|
liabilityInitWeight: number;
|