@haven-fi/solauto-sdk 1.0.548 → 1.0.549

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.
@@ -176,7 +176,7 @@ async function getFlashLoanRequirements(client, values, attemptNum) {
176
176
  !sufficientSignerSupplyLiquidity;
177
177
  }
178
178
  else {
179
- throw new Error(`Need at least ${values.debtAdjustmentUsd / debtPrice} ${(0, generalUtils_2.tokenInfo)(client.debtMint).ticker} or ${values.debtAdjustmentUsd / supplyPrice} ${(0, generalUtils_2.tokenInfo)(client.supplyMint).ticker} to perform the transaction`);
179
+ throw new Error(`Insufficient liquidity to perform the transaction`);
180
180
  }
181
181
  }
182
182
  (0, generalUtils_2.consoleLog)("Requires flash loan:", requiresFlashLoan);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.548",
3
+ "version": "1.0.549",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -377,7 +377,7 @@ export async function getFlashLoanRequirements(
377
377
  !sufficientSignerSupplyLiquidity;
378
378
  } else {
379
379
  throw new Error(
380
- `Need at least ${values.debtAdjustmentUsd / debtPrice} ${tokenInfo(client.debtMint).ticker} or ${values.debtAdjustmentUsd / supplyPrice} ${tokenInfo(client.supplyMint).ticker} to perform the transaction`
380
+ `Insufficient liquidity to perform the transaction`
381
381
  );
382
382
  }
383
383
  }