@haven-fi/solauto-sdk 1.0.496 → 1.0.497
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.
@@ -186,7 +186,7 @@ function getJupSwapRebalanceDetails(client, values, targetLiqUtilizationRateBps,
|
|
186
186
|
const highLiquidity = (0, numberUtils_1.fromBaseUnit)(client.solautoPositionState?.netWorth.baseAmountUsdValue ?? BigInt(0), generalAccounts_1.USD_DECIMALS) > 10000;
|
187
187
|
const usingMajor = (0, generalUtils_2.tokenInfo)(client.supplyMint).isMajor || (0, generalUtils_2.tokenInfo)(client.debtMint).isMajor;
|
188
188
|
const inputPadding = targetLiqUtilizationRateBps === 0 && !usingMajor && highLiquidity
|
189
|
-
? 0.
|
189
|
+
? 0.1
|
190
190
|
: 0;
|
191
191
|
if (inputPadding) {
|
192
192
|
inputAmount += BigInt(Math.round(Number(inputAmount) * inputPadding));
|
package/package.json
CHANGED
@@ -403,7 +403,7 @@ export function getJupSwapRebalanceDetails(
|
|
403
403
|
tokenInfo(client.supplyMint).isMajor || tokenInfo(client.debtMint).isMajor;
|
404
404
|
const inputPadding =
|
405
405
|
targetLiqUtilizationRateBps === 0 && !usingMajor && highLiquidity
|
406
|
-
? 0.
|
406
|
+
? 0.1
|
407
407
|
: 0;
|
408
408
|
if (inputPadding) {
|
409
409
|
inputAmount += BigInt(Math.round(Number(inputAmount) * inputPadding));
|