Skip to content

Iterating liquidity from the current tick #9

Answered by atiselsts
rracinskij asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

The active liquidity in the pool is read simply by accesing pool["liquidity"].

About the problem mentioned in the article - the TVL problem shows up in the aggregate token values maintained by the subgraph. My scripts does not use those values, they use liquidity values, calculate token amounts from that, and sum over multiple ticks or positions. They should not be affected by the problem.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@rracinskij
Comment options

@atiselsts
Comment options

@rracinskij
Comment options

@atiselsts
Comment options

@rracinskij
Comment options

Answer selected by rracinskij
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