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

quote doesn't work across currencies with different decimals #577

Open
ranger8888 opened this issue May 3, 2022 · 1 comment
Open

quote doesn't work across currencies with different decimals #577

ranger8888 opened this issue May 3, 2022 · 1 comment

Comments

@ranger8888
Copy link

import { Price as UPrice } from "@ubeswap/token-math";

Try quoting an 8 decimal token by a 6 decimal token. The result will be greater by 2 orders of magnitude than actual

@macalinao
Copy link
Member

hmm we should write some tests

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