@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.
package/dist/utils/priceUtils.js
CHANGED
@@ -128,7 +128,7 @@ async function getSwitchboardPrices(mints) {
|
|
128
128
|
return {};
|
129
129
|
}
|
130
130
|
const { CrossbarClient } = SwbCommon;
|
131
|
-
const crossbar = CrossbarClient.
|
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 () => {
|
package/local/txSandbox.ts
CHANGED
@@ -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:
|
53
|
-
authority: new PublicKey("
|
50
|
+
positionId: 1,
|
51
|
+
authority: new PublicKey("61rtn5tzVkesapo6Cz83SPoShUfAePSxJsqniuF2wRKC"),
|
54
52
|
// lpUserAccount: new PublicKey(
|
55
53
|
// "GEokw9jqbh6d1xUNA3qaeYFFetbSR5Y1nt7C3chwwgSz"
|
56
54
|
// ),
|
package/package.json
CHANGED
package/src/utils/priceUtils.ts
CHANGED
@@ -160,7 +160,7 @@ export async function getSwitchboardPrices(
|
|
160
160
|
}
|
161
161
|
|
162
162
|
const { CrossbarClient } = SwbCommon;
|
163
|
-
const crossbar = CrossbarClient.
|
163
|
+
const crossbar = new CrossbarClient("https://integrator-crossbar.mrgn.app/");
|
164
164
|
|
165
165
|
let prices: Record<string, PriceResult> = {};
|
166
166
|
try {
|