Skip to content

Commit

Permalink
add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzshia committed Oct 28, 2024
1 parent c041fa9 commit 0240bde
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/trade/routeSwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 0240bde

Please sign in to comment.