@haven-fi/solauto-sdk 1.0.517 → 1.0.518

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.
@@ -153,7 +153,7 @@ function getFlashLoanRequirements(client, values, attemptNum) {
153
153
  (0, generalUtils_2.tokenInfo)(client.debtMint).isStableCoin;
154
154
  const sufficientSignerSupplyLiquidity = false; // TODO
155
155
  const sufficientSignerDebtLiquidity = isJupLong; // TODO
156
- const signerFlashLoan = Boolean(((attemptNum ?? 0) > 1 ||
156
+ const signerFlashLoan = Boolean(((attemptNum ?? 0) > 3 ||
157
157
  (insufficientDebtLiquidity && insufficientDebtLiquidity)) &&
158
158
  (sufficientSignerSupplyLiquidity || sufficientSignerDebtLiquidity));
159
159
  if (signerFlashLoan) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.517",
3
+ "version": "1.0.518",
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",
@@ -322,7 +322,7 @@ export function getFlashLoanRequirements(
322
322
  const sufficientSignerSupplyLiquidity = false; // TODO
323
323
  const sufficientSignerDebtLiquidity = isJupLong; // TODO
324
324
  const signerFlashLoan = Boolean(
325
- ((attemptNum ?? 0) > 1 ||
325
+ ((attemptNum ?? 0) > 3 ||
326
326
  (insufficientDebtLiquidity && insufficientDebtLiquidity)) &&
327
327
  (sufficientSignerSupplyLiquidity || sufficientSignerDebtLiquidity)
328
328
  );