From 0240bdeddbdfad5fe85d4fb4f7f289509f97bd60 Mon Sep 17 00:00:00 2001 From: Cruz Shia Date: Mon, 28 Oct 2024 23:34:30 +0800 Subject: [PATCH] add more comments --- src/trade/routeSwap.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/trade/routeSwap.ts b/src/trade/routeSwap.ts index 7628b3e..4ed4064 100644 --- a/src/trade/routeSwap.ts +++ b/src/trade/routeSwap.ts @@ -37,7 +37,10 @@ async function routeSwap() { let poolData = readCachePoolData() // initial cache time is 10 mins(1000 * 60 * 10), if wants to cache longer, set bigger number in milliseconds // let poolData = readCachePoolData(1000 * 60 * 60 * 24 * 10) // example for cache 1 day if (poolData.ammPools.length === 0) { - console.log('fetching all pool basic info, this might take a while (more than 30 seconds)..') + console.log( + '**Please ensure you are using "paid" rpc node or you might encounter fetch data error due to pretty large pool data**' + ) + console.log('fetching all pool basic info, this might take a while (more than 1 minutes)..') poolData = await raydium.tradeV2.fetchRoutePoolBasicInfo() // devent pool info // fetchRoutePoolBasicInfo({