diff --git a/scripts/dex-router/src/index.ts b/scripts/dex-router/src/index.ts index 11d4f699..976186c0 100644 --- a/scripts/dex-router/src/index.ts +++ b/scripts/dex-router/src/index.ts @@ -437,6 +437,12 @@ const argv = yargs(hideBin(process.argv)) .parseSync(); async function run() { + console.log(`version 7`); + const maxaccs = argv["options-max-accounts-jupiter"].map((maxAccounts) => + Number(maxAccounts) + ); + console.log(`maxaccs: ${maxaccs}`); + const connection = new Connection(argv["endpoint-svm"], "confirmed"); const dexRouter = new DexRouter( argv["endpoint-express-relay"], diff --git a/scripts/dex-router/src/router/jupiter.ts b/scripts/dex-router/src/router/jupiter.ts index ab026fbd..b4791c66 100644 --- a/scripts/dex-router/src/router/jupiter.ts +++ b/scripts/dex-router/src/router/jupiter.ts @@ -55,7 +55,6 @@ export class JupiterRouter implements Router { console.log(`amountIn: ${amountIn}`); console.log(`url: ${this.quoteurl.toString()}`); console.log(`debugging, does this msg show up?`); - console.log(`version 6`); const string1 = `https://jupiter-swap-api.quiknode.pro/quote?inputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&outputMint=So11111111111111111111111111111111111111112&amount=50000000&autoSlippage=true&maxAutoSlippageBps=50&maxAccounts=${this.maxAccounts}`; const string2 = `https://jupiter-swap-api.quiknode.pro/quote?inputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&outputMint=So11111111111111111111111111111111111111112&amount=50000000&autoSlippage=true&maxAutoSlippageBps=50&maxAccounts=10`;