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

Incorrect spot price for TokenBalanceWidget #15

Open
Matehoo opened this issue Oct 17, 2022 · 0 comments
Open

Incorrect spot price for TokenBalanceWidget #15

Matehoo opened this issue Oct 17, 2022 · 0 comments

Comments

@Matehoo
Copy link
Contributor

Matehoo commented Oct 17, 2022

Description:
There is some deviation in prices for non-native tokens

Screenshot 2022-10-17 at 15 11 40

Screenshot 2022-10-17 at 15 45 39

Here you can find exact token balance under `tez_pool` key and `token_pool` key:

https://better-call.dev/mainnet/KT1K4EwTpbvYN9agJdjpyJm4ZZdhpUNKB3F6/storage

The root of the issue should be that someone send tokens directly to pool address instead of through proper ui.

Expected behavior:
Show correct prices for all tokens

Actual behavior:
Incorrect prices

Possible solution:
Fetch token balances from pool storage instead of tzkt.io token balance and native token balance

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