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

Failed to get ... quotes. Reasons: ProviderGasError, ProviderGasError, ProviderGasError #10

Closed
timnugent opened this issue Sep 27, 2021 · 8 comments

Comments

@timnugent
Copy link
Contributor

Getting this error for WETH->DAI and other pairs, e.g.

WETH : 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
DAI : 0x6B175474E89094C44Da98b954EedeAC495271d0F

./bin/cli quote --tokenIn 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 --tokenOut 0x6B175474E89094C44Da98b954EedeAC495271d0F --amount 1000 --exactIn --recipient 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B

Error: Failed to get 3 quotes. Reasons: ProviderGasError, ProviderGasError, ProviderGasError

@willpote
Copy link
Contributor

Fixed by #7 ?

@timnugent
Copy link
Contributor Author

Afraid not, get this issue with that string->int fix

@willpote
Copy link
Contributor

What provider are you using?

@timnugent
Copy link
Contributor Author

Latest version of geth

@willpote
Copy link
Contributor

Is it a local node? Or Infura/Alchemy/other?

@timnugent
Copy link
Contributor Author

Geth Version: 1.10.8-stable local node. Just compared vs Alchemy and I didn't get it there actually

COMP 0xc00e94Cb662C3520282E6f5717214004A7f26888 ZRX 0xE41d2489571d322189246DaFA5ebDe1F4699F498 chainID:1

./bin/cli quote --tokenIn 0xc00e94Cb662C3520282E6f5717214004A7f26888 --tokenOut 0xE41d2489571d322189246DaFA5ebDe1F4699F498 --amount 1000 --exactIn --recipient 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B
Error: Failed to get 1 quotes. Reasons: ProviderGasError

@willpote
Copy link
Contributor

willpote commented Oct 1, 2021

Can you try lowering the value here to 100? Or if that doesn't work 50?

When we get quotes we make large multicall requests to the node that use a lot of gas. Different nodes have different gas limits per call, and the CLI defaults are tuned for Infura (which has ~150,000,000 gas limit per call).

If lowering the multicallChunk works you can continue like that (though may see more latency since you send more requests to the node), or you can reconfigure your node to have a higher gas limit per call

@timnugent
Copy link
Contributor Author

Yes that fixed it, many thanks

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

2 participants