Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

V2, V3 price quotes #171

Answered by liquid-8
ars3nicum asked this question in Q&A
Sep 25, 2021 · 2 comments · 1 reply
Discussion options

For some tokens I get an error when quoting the price in Uniswap V3, meanwhile in V2 everything is OK.
Error code is:
raise ContractLogicError('execution reverted')
web3.exceptions.ContractLogicError: execution reverted

Please help me to understand the reason.

You must be logged in to vote

Check if there is proper pool @ V3. Check what fee has been set for it. Default value for V3 fee is 0.3% or fee=3000 for get_price/make_trade calls. Other values are 0.05% (fee=500) and 1% (fee=10000)

Replies: 2 comments · 1 reply

Comment options

Check if there is proper pool @ V3. Check what fee has been set for it. Default value for V3 fee is 0.3% or fee=3000 for get_price/make_trade calls. Other values are 0.05% (fee=500) and 1% (fee=10000)

You must be logged in to vote
0 replies
Answer selected by ars3nicum
Comment options

It was fee. Thank you!

You must be logged in to vote
1 reply
@yudidi
Comment options

it works both on ethereum and sepolia? I only success on ethereum,but meet 'execution reverted' too on sepolia.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.