@carrot-protocol/boost-http-client 0.2.15-group-refactor1-dev-f36a637 → 0.2.15-group-refactor1-dev-b489da8

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
@@ -142,6 +142,7 @@ class Client {
142
142
  liabilityBorrowCostApy: Number(b.liabilityBorrowCostApy),
143
143
  liabilityEmissionsApy: Number(b.liabilityEmissionsApy),
144
144
  emissionsOutstandingAndUnclaimed,
145
+ emissionsOutstandingAndUnclaimedUi: Number(b.emissionsOutstandingAndUnclaimedUi),
145
146
  price: Number(b.price),
146
147
  liquidation,
147
148
  };
@@ -321,8 +322,6 @@ class Client {
321
322
  */
322
323
  async adjustLeverage(clendGroup, clendAccount, assetTokenMint, liabilityTokenMint, leverage, slippageBps) {
323
324
  const req = {
324
- owner: this.address(),
325
- clendGroup,
326
325
  clendAccount,
327
326
  assetTokenMint,
328
327
  liabilityTokenMint,
@@ -341,8 +340,6 @@ class Client {
341
340
  */
342
341
  async withdrawLeverage(clendGroup, clendAccount, outputTokenMint, assetTokenMint, liabilityTokenMint, uiAmount, slippageBps, withdrawAll) {
343
342
  const req = {
344
- owner: this.address(),
345
- clendGroup,
346
343
  clendAccount,
347
344
  outputTokenMint,
348
345
  assetTokenMint,
package/dist/types.d.ts CHANGED
@@ -28,8 +28,6 @@ export interface DepositLeverageResponse {
28
28
  * Request to adjust the leverage of an existing position
29
29
  */
30
30
  export interface AdjustLeverageRequest {
31
- owner: web3.PublicKey;
32
- clendGroup: web3.PublicKey;
33
31
  clendAccount: web3.PublicKey;
34
32
  assetTokenMint: web3.PublicKey;
35
33
  liabilityTokenMint: web3.PublicKey;
@@ -47,8 +45,6 @@ export interface AdjustLeverageResponse {
47
45
  * Request to withdraw from a leveraged position
48
46
  */
49
47
  export interface WithdrawLeverageRequest {
50
- owner: web3.PublicKey;
51
- clendGroup: web3.PublicKey;
52
48
  clendAccount: web3.PublicKey;
53
49
  outputTokenMint: web3.PublicKey;
54
50
  assetTokenMint: web3.PublicKey;
@@ -139,6 +135,7 @@ export interface ClendAccountBalance {
139
135
  liabilityBorrowCostApy: number;
140
136
  liabilityEmissionsApy: number;
141
137
  emissionsOutstandingAndUnclaimed: BN;
138
+ emissionsOutstandingAndUnclaimedUi: number;
142
139
  price: number;
143
140
  liquidation: ClendAccountAssetLiquidation | null;
144
141
  }
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-f36a637",
3
+ "version": "0.2.15-group-refactor1-dev-b489da8",
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
@@ -171,6 +171,9 @@ export class Client {
171
171
  liabilityBorrowCostApy: Number(b.liabilityBorrowCostApy),
172
172
  liabilityEmissionsApy: Number(b.liabilityEmissionsApy),
173
173
  emissionsOutstandingAndUnclaimed,
174
+ emissionsOutstandingAndUnclaimedUi: Number(
175
+ b.emissionsOutstandingAndUnclaimedUi,
176
+ ),
174
177
  price: Number(b.price),
175
178
  liquidation,
176
179
  };
@@ -416,8 +419,6 @@ export class Client {
416
419
  slippageBps: number,
417
420
  ): Promise<string> {
418
421
  const req: AdjustLeverageRequest = {
419
- owner: this.address(),
420
- clendGroup,
421
422
  clendAccount,
422
423
  assetTokenMint,
423
424
  liabilityTokenMint,
@@ -454,8 +455,6 @@ export class Client {
454
455
  withdrawAll: boolean,
455
456
  ): Promise<string> {
456
457
  const req: WithdrawLeverageRequest = {
457
- owner: this.address(),
458
- clendGroup,
459
458
  clendAccount,
460
459
  outputTokenMint,
461
460
  assetTokenMint,
package/src/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BN, web3 } from "@coral-xyz/anchor";
2
2
 
3
- // Represents a request to send a transaction
3
+ // Send a tx
4
4
  export interface SendRequest {
5
5
  userRequestId: string;
6
6
  txns: string[];
@@ -33,8 +33,6 @@ export interface DepositLeverageResponse {
33
33
  * Request to adjust the leverage of an existing position
34
34
  */
35
35
  export interface AdjustLeverageRequest {
36
- owner: web3.PublicKey;
37
- clendGroup: web3.PublicKey;
38
36
  clendAccount: web3.PublicKey;
39
37
  assetTokenMint: web3.PublicKey;
40
38
  liabilityTokenMint: web3.PublicKey;
@@ -54,8 +52,6 @@ export interface AdjustLeverageResponse {
54
52
  * Request to withdraw from a leveraged position
55
53
  */
56
54
  export interface WithdrawLeverageRequest {
57
- owner: web3.PublicKey;
58
- clendGroup: web3.PublicKey;
59
55
  clendAccount: web3.PublicKey;
60
56
  outputTokenMint: web3.PublicKey;
61
57
  assetTokenMint: web3.PublicKey;
@@ -158,6 +154,7 @@ export interface ClendAccountBalance {
158
154
  liabilityBorrowCostApy: number;
159
155
  liabilityEmissionsApy: number;
160
156
  emissionsOutstandingAndUnclaimed: BN;
157
+ emissionsOutstandingAndUnclaimedUi: number;
161
158
  price: number;
162
159
  liquidation: ClendAccountAssetLiquidation | null;
163
160
  }