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

feat: optimize tick liquidity fetching through indexer #469

Merged
merged 23 commits into from
Oct 20, 2023

Conversation

dib542
Copy link
Collaborator

@dib542 dib542 commented Oct 13, 2023

This PR uses the new pair liquidity long-polling route from the indexer to request real-time up-to-date liquidity data from the chain

This PR:

  • ensures the liquidity data for a token pair is from the same chain height when displayed to end users
  • updates with partial liquidity responses
    • which reduces requires data download size by orders of magnitude for each new block update
    • these partial responses are not diffs, they represent new reserves at each given tickIndex of a token pair, so the updates do not lose resolution due to cumulative math operations on rounded numbers
  • updates as soon as new data is available: using new long-polling mechanism

@dib542 dib542 linked an issue Oct 13, 2023 that may be closed by this pull request
@dib542 dib542 merged commit de75c25 into main Oct 20, 2023
2 checks passed
@dib542 dib542 deleted the 452-optimize-tick-liquidity-fetching-through-indexer branch October 20, 2023 15:53
dib542 pushed a commit that referenced this pull request Oct 20, 2023
## [0.3.33](v0.3.32...v0.3.33) (2023-10-20)

### Features

* optimize tick liquidity fetching through indexer ([#469](#469)) ([de75c25](de75c25))
@dib542
Copy link
Collaborator Author

dib542 commented Oct 20, 2023

🎉 This PR is included in version 0.3.33 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize tick liquidity fetching through indexer
1 participant