@haven-fi/solauto-sdk 1.0.385 → 1.0.386
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.
@@ -73,7 +73,7 @@ async function getJupSwapTransaction(signer, swapDetails, attemptNum) {
|
|
73
73
|
}
|
74
74
|
async function getJupPriceData(mints, extraInfo) {
|
75
75
|
const data = await (0, generalUtils_1.retryWithExponentialBackoff)(async () => {
|
76
|
-
const res = (await fetch("https://api.jup.ag/price/v2?ids=" +
|
76
|
+
const res = await (await fetch("https://api.jup.ag/price/v2?ids=" +
|
77
77
|
mints.map((x) => x.toString()).join(",") + (extraInfo ? "&showExtraInfo=true" : ""))).json();
|
78
78
|
return res;
|
79
79
|
}, 6);
|
package/package.json
CHANGED
@@ -144,7 +144,7 @@ export async function getJupSwapTransaction(
|
|
144
144
|
|
145
145
|
export async function getJupPriceData(mints: PublicKey[], extraInfo?: boolean) {
|
146
146
|
const data = await retryWithExponentialBackoff(async () => {
|
147
|
-
const res = (
|
147
|
+
const res = await (
|
148
148
|
await fetch(
|
149
149
|
"https://api.jup.ag/price/v2?ids=" +
|
150
150
|
mints.map((x) => x.toString()).join(",") + (extraInfo ? "&showExtraInfo=true" : "")
|