@carrot-protocol/boost-http-client 0.4.1 → 0.4.2-fund-input1-dev-71d6b82

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
@@ -357,10 +357,6 @@ class Client extends api_1.ApiClient {
357
357
  * @returns Deposit leverage operation result
358
358
  */
359
359
  async depositLeverage(clendGroup, clendAccount, inputTokenMint, assetTokenMint, liabilityTokenMint, uiAmount, leverage, slippageBps) {
360
- if (!inputTokenMint.equals(assetTokenMint) &&
361
- !inputTokenMint.equals(liabilityTokenMint)) {
362
- throw new Error("Input mint must be the same as the asset or liability mint");
363
- }
364
360
  const req = {
365
361
  owner: this.address(),
366
362
  clendGroup,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/boost-http-client",
3
- "version": "0.4.1",
3
+ "version": "0.4.2-fund-input1-dev-71d6b82",
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
@@ -32,8 +32,6 @@ import {
32
32
  WithdrawResponse,
33
33
  GetAccountResponse,
34
34
  GetAccountRequest,
35
- ExtensionKey,
36
- Extension,
37
35
  } from "./types";
38
36
  import encode from "bs58";
39
37
  import { ApiClient } from "./api";
@@ -478,15 +476,6 @@ export class Client extends ApiClient {
478
476
  leverage: number,
479
477
  slippageBps: number,
480
478
  ): Promise<string> {
481
- if (
482
- !inputTokenMint.equals(assetTokenMint) &&
483
- !inputTokenMint.equals(liabilityTokenMint)
484
- ) {
485
- throw new Error(
486
- "Input mint must be the same as the asset or liability mint",
487
- );
488
- }
489
-
490
479
  const req: DepositLeverageRequest = {
491
480
  owner: this.address(),
492
481
  clendGroup,