@haven-fi/solauto-sdk 1.0.725 → 1.0.726
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.
@@ -254,7 +254,7 @@ class PositionRebalanceHelper {
|
|
254
254
|
}
|
255
255
|
else if (realtimeLiqUtilRateBps - this.pos.boostFromBps <= bpsDistanceThreshold &&
|
256
256
|
(skipExtraChecks ||
|
257
|
-
(this.validBoostFromHere() && this.sufficientLiquidityToBoost()))) {
|
257
|
+
(this.validBoostFromHere(bpsDistanceThreshold) && this.sufficientLiquidityToBoost()))) {
|
258
258
|
return "boost";
|
259
259
|
}
|
260
260
|
return undefined;
|
package/local/txSandbox.ts
CHANGED
@@ -22,7 +22,7 @@ import {
|
|
22
22
|
} from "../src";
|
23
23
|
import { getSecretKey } from "./shared";
|
24
24
|
|
25
|
-
const payForTransaction =
|
25
|
+
const payForTransaction = false;
|
26
26
|
const testProgram = false;
|
27
27
|
const lpEnv: ProgramEnv = "Prod";
|
28
28
|
|
@@ -48,7 +48,7 @@ export async function main() {
|
|
48
48
|
|
49
49
|
await client.initializeExistingSolautoPosition({
|
50
50
|
positionId: 2,
|
51
|
-
authority: new PublicKey("
|
51
|
+
authority: new PublicKey("EBhRj7jbF2EVE21i19JSuCX1BAbnZFYhoKW64HnaZ3kf"),
|
52
52
|
// lpUserAccount: new PublicKey(
|
53
53
|
// "GEokw9jqbh6d1xUNA3qaeYFFetbSR5Y1nt7C3chwwgSz"
|
54
54
|
// ),
|
package/package.json
CHANGED
@@ -514,7 +514,7 @@ class PositionRebalanceHelper {
|
|
514
514
|
} else if (
|
515
515
|
realtimeLiqUtilRateBps - this.pos.boostFromBps <= bpsDistanceThreshold &&
|
516
516
|
(skipExtraChecks ||
|
517
|
-
(this.validBoostFromHere() && this.sufficientLiquidityToBoost()))
|
517
|
+
(this.validBoostFromHere(bpsDistanceThreshold) && this.sufficientLiquidityToBoost()))
|
518
518
|
) {
|
519
519
|
return "boost";
|
520
520
|
}
|