messari / subgraphs

Standardized subgraphs for blockchain data
MIT License
512 stars 240 forks source link

Need `LiquidityPool`'s `sqrtPrice`. #2484

Open chocoford opened 8 months ago

chocoford commented 8 months ago

What do you think is missing? The price of token0/token1 derived from tick is inaccurate.

Describe the solution you'd like Like Uniswap/v3-subgraph, provide sqrtPrice for LiquidityPool so that we could get the prcise price of pool.

The sqrtPrice is also the essential to calculate the amounts of token0 and token1.

melotik commented 8 months ago

@chocoford thank you for this. I will reach out to our DEX expert internally to get an understanding of the priority of this. But regardless of our timeline to getting to this, you are more than welcome to put up a PR to add this and we will support the review/deployment.

cc @steegecs