@haven-fi/solauto-sdk 1.0.673 → 1.0.674

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.
@@ -46,7 +46,7 @@ class RebalanceTxBuilder {
46
46
  }
47
47
  }
48
48
  async flashLoanRequirements(attemptNum) {
49
- const maxLtvRateBps = (0, utils_1.getMaxLiqUtilizationRateBps)(this.client.pos.state.maxLtvBps, this.client.pos.state.liqThresholdBps, 0.01);
49
+ const maxLtvRateBps = (0, utils_1.getMaxLiqUtilizationRateBps)(this.client.pos.state.maxLtvBps, this.client.pos.state.liqThresholdBps, 0.015);
50
50
  if (this.values.intermediaryLiqUtilizationRateBps < maxLtvRateBps) {
51
51
  return undefined;
52
52
  }
@@ -34,7 +34,7 @@ let [, umi] = getSolanaRpcConnection(
34
34
 
35
35
  const signer = createSignerFromKeypair(
36
36
  umi,
37
- fromWeb3JsKeypair(Keypair.fromSecretKey(getSecretKey()))
37
+ fromWeb3JsKeypair(Keypair.fromSecretKey(getSecretKey("solauto-manager")))
38
38
  );
39
39
 
40
40
  export async function main() {
@@ -47,8 +47,8 @@ export async function main() {
47
47
  });
48
48
 
49
49
  await client.initialize({
50
- positionId: 2,
51
- authority: new PublicKey("5UqsR2PGzbP8pGPbXEeXx86Gjz2N2UFBAuFZUSVydAEe"),
50
+ positionId: 3,
51
+ authority: new PublicKey("61rtn5tzVkesapo6Cz83SPoShUfAePSxJsqniuF2wRKC"),
52
52
  // lpUserAccount: new PublicKey(
53
53
  // "GEokw9jqbh6d1xUNA3qaeYFFetbSR5Y1nt7C3chwwgSz"
54
54
  // ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.673",
3
+ "version": "1.0.674",
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",
@@ -118,7 +118,7 @@ export class RebalanceTxBuilder {
118
118
  const maxLtvRateBps = getMaxLiqUtilizationRateBps(
119
119
  this.client.pos.state.maxLtvBps,
120
120
  this.client.pos.state.liqThresholdBps,
121
- 0.01
121
+ 0.015
122
122
  );
123
123
  if (this.values.intermediaryLiqUtilizationRateBps < maxLtvRateBps) {
124
124
  return undefined;