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

How do you tell the order of tokens in a liquidity pool? #5

Open
Jasper-Nelligan opened this issue Jun 18, 2022 · 0 comments
Open

How do you tell the order of tokens in a liquidity pool? #5

Jasper-Nelligan opened this issue Jun 18, 2022 · 0 comments

Comments

@Jasper-Nelligan
Copy link

Hi,

I'm just wondering about how to determine the order of tokens in a liquidity pool. For example, if I'm querying the DAI/WBTC pool (0x231b7589426ffe1b75405526fc32ac09d44364c4), how can I know ahead of time which token will be token0 and which will be token1?

I'm wondering because if I provide decimals with optTokenDecimals, how would I know to provide it as [8, 18] rather than [18, 8]?

Thanks in advance!

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