Skip to content
Discussion options

You must be logged in to vote

I am sorry if the answer above was confusing. You are correct that WBTC will be token x in the pool, considering it has a lesser hexadecimal value. So the price is USDC/WBTC [This simply means that by default, the pool will return the price of WBTC in terms of USDC]

P = 1.0001 ** 70538
P = 1156.8989

To account for the decimal of the price so that the price reflects the actual price, we would need to do the decimal ratio calculation, but we won't say simply because the pool has its token in this form USDC/WBTC, then our ratio calculation will be 10**6/10**8 but instead we want to calculate the price of WBTC in term of USDC so we will divide the P above by the decimal of USDC and then multi…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@EngrPips
Comment options

Answer selected by yathindrak
@yathindrak
Comment options

@EngrPips
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants