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

Bug get price token is DOGE #12

Closed
tanhsnkt1997 opened this issue Jun 30, 2022 · 3 comments
Closed

Bug get price token is DOGE #12

tanhsnkt1997 opened this issue Jun 30, 2022 · 3 comments

Comments

@tanhsnkt1997
Copy link

image
I scrap price doge coin,
Looks like the calculation: if (mainToken.contract == token0) dependantTokenPrice = reserve0 / reserve1; // here decimals
else dependantTokenPrice = reserve1 / reserve0; Not true in this case

@tanhsnkt1997
Copy link
Author

I use bitquery and it gives correct results

@tanhsnkt1997
Copy link
Author

image

@tanhsnkt1997
Copy link
Author

image

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

1 participant