Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find USDC/WETH pair #479

Closed
jf-li00 opened this issue May 15, 2024 · 1 comment
Closed

Can't find USDC/WETH pair #479

jf-li00 opened this issue May 15, 2024 · 1 comment

Comments

@jf-li00
Copy link
Contributor

jf-li00 commented May 15, 2024

when I was fuzzing a contract I got an error:

 INFO fetching pairs for 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
 INFO fetching pairs for 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
thread 'main' panicked at src/evm/tokens/uniswap.rs:233:10:
Unexpected RPC error, consider setting env <ETH_RPC_URL>

I looked into the code and find it is due to empty response when requesting pairs

and then I manually requested the api https://pairs.infra.fuzz.land/single_pair/{network}/{token}/{weth}, which is pairs.infra.fuzz.land/single_pair/eth/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 in this case, I got an empty response

@shouc
Copy link
Contributor

shouc commented May 15, 2024

fixed now. our db was rekt last week and i forgot to include pool #0 when re-indexing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants