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

Adjust price for decimals when comparing to 1 #7630

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

quentinadam
Copy link

@quentinadam quentinadam commented Dec 20, 2023

In the position list component, when checking if the price should be inverted for display purposes, the check is done on the (unadjusted) price which can lead to confusion/inconsistencies.

For example, a pool with a token0 with 2 decimals and a token1 with 6 decimals will be displayed differently than a pool with a token0 with 6 decimals and a token1 with 6 decimals, even though they have the same adjusted price below 1 (the first pool will fail the check and return an (unadjusted) price above 1).

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

Successfully merging this pull request may close these issues.

None yet

1 participant