Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fetching live liquidity positions #116

Answered by ErikBjare
alexskliu asked this question in Q&A
Discussion options

Thanks for the awesome work @ErikBjare. Is there a function to query live positional balance of a wallet when providing liquidity? Ie. LP pool provided at the beginning is 2500 USD and 1 ETH but as the price goes down, the position becomes 2000USD and 1.2 ETH etc.

You must be logged in to vote

Replies: 1 comment

Comment options

There is not, but there's code in the uniswap-v3-sdk that does what you want: https://github.com/Uniswap/uniswap-v3-sdk/blob/25f4128f7afa42cfd5527a9d422e8751e99f4f44/src/entities/position.ts#L65-L127

You must be logged in to vote
0 replies
Answer selected by ErikBjare
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.