From a42304d57be89a74a6a330e13f59bec683a79297 Mon Sep 17 00:00:00 2001 From: Cruz Shia Date: Fri, 3 Jan 2025 11:05:39 +0800 Subject: [PATCH] uncomment code --- src/trade/routeSwap.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/trade/routeSwap.ts b/src/trade/routeSwap.ts index fbd8f81..b872857 100644 --- a/src/trade/routeSwap.ts +++ b/src/trade/routeSwap.ts @@ -116,7 +116,6 @@ async function routeSwap() { // swapRoutes are sorted by out amount, so first one should be the best route const targetRoute = swapRoutes[0] - console.log(123213555, swapRoutes) if (!targetRoute) throw new Error('no swap routes were found') console.log('best swap route:', { @@ -155,11 +154,11 @@ async function routeSwap() { printSimulateInfo() console.log('execute tx..') // sequentially should always to be true because first tx does initialize token accounts needed for swap - // const { txIds } = await execute({ sequentially: true }) - // console.log('txIds:', txIds) - // txIds.forEach((txId) => console.log(`https://explorer.solana.com/tx/${txId}`)) + const { txIds } = await execute({ sequentially: true }) + console.log('txIds:', txIds) + txIds.forEach((txId) => console.log(`https://explorer.solana.com/tx/${txId}`)) process.exit() // if you don't want to end up node execution, comment this line } /** uncomment code below to execute */ -routeSwap() +// routeSwap()