Uniswap / smart-order-router

GNU General Public License v3.0
400 stars 397 forks source link

Calls take > 15 seconds #285

Open maxdgaa opened 1 year ago

maxdgaa commented 1 year ago

I'm running a local Geth node and have configured its eth call gas limit to 150 million as per the README's instructions.

I'm running the example call: ./bin/cli quote --tokenIn 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48 --tokenOut 0x1f9840a85d5af5bf1d1762f925bdaddc4201f984 --amount 1000 --exactIn --recipient 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B --protocols v2,v3

My .env file looks like this: JSON_RPC_PROVIDER = 'http://localhost:8545'

I've verified that it does indeed use my local node.

jsy1218 commented 1 year ago

We are working on perf optimizations over the last week. Do you see any noticeable perf improvement now?

maxdgaa commented 11 months ago

Hi, Not really to be honest. I also tested with Infura and keep thinking the problem must be on my end because the response takes so long that a block has long passed so the quote is useless, but I don't see what I'm doing wrong.

Hiraki99 commented 5 months ago

I face same issue, when I intergration @uniswap/smart-order-router on react-native, too long time to get best route