@haven-fi/solauto-sdk 1.0.792 → 1.0.793

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.
@@ -128,7 +128,7 @@ async function getSwitchboardPrices(mints) {
128
128
  return {};
129
129
  }
130
130
  const { CrossbarClient } = SwbCommon;
131
- const crossbar = CrossbarClient.default();
131
+ const crossbar = new CrossbarClient("https://integrator-crossbar.mrgn.app/");
132
132
  let prices = {};
133
133
  try {
134
134
  prices = await (0, generalUtils_1.retryWithExponentialBackoff)(async () => {
@@ -4,7 +4,6 @@ import { fromWeb3JsKeypair } from "@metaplex-foundation/umi-web3js-adapters";
4
4
  import {
5
5
  ClientTransactionsManager,
6
6
  consoleLog,
7
- fetchBank,
8
7
  getBatches,
9
8
  getClient,
10
9
  getPositionExBulk,
@@ -16,7 +15,6 @@ import {
16
15
  PriorityFeeSetting,
17
16
  ProgramEnv,
18
17
  rebalance,
19
- safeFetchBank,
20
18
  SOLAUTO_PROD_PROGRAM,
21
19
  SOLAUTO_TEST_PROGRAM,
22
20
  SolautoClient,
@@ -49,8 +47,8 @@ export async function main() {
49
47
  });
50
48
 
51
49
  await client.initializeExistingSolautoPosition({
52
- positionId: 2,
53
- authority: new PublicKey("7rujyCAvZYsd3kmfhEN6YmsRLpobtzsqrsZAKv5Mgkob"),
50
+ positionId: 1,
51
+ authority: new PublicKey("61rtn5tzVkesapo6Cz83SPoShUfAePSxJsqniuF2wRKC"),
54
52
  // lpUserAccount: new PublicKey(
55
53
  // "GEokw9jqbh6d1xUNA3qaeYFFetbSR5Y1nt7C3chwwgSz"
56
54
  // ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.792",
3
+ "version": "1.0.793",
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",
@@ -160,7 +160,7 @@ export async function getSwitchboardPrices(
160
160
  }
161
161
 
162
162
  const { CrossbarClient } = SwbCommon;
163
- const crossbar = CrossbarClient.default();
163
+ const crossbar = new CrossbarClient("https://integrator-crossbar.mrgn.app/");
164
164
 
165
165
  let prices: Record<string, PriceResult> = {};
166
166
  try {