-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: return bucket index of the current tick from LiquidityPerTickRa…
…nge query (#6805) (#6806) Closes: https://app.clickup.com/t/86a19jj0x ## What is the purpose of the change This PR is an update to the full range liquidity query. It adds a new return parameter that is the bucket index corresponding to the current tick. This functionality is necessary for the SQS router in: #6785 By having this index, we don't have to iterate all ticks in search of the current tick. Instead, we can index into the desired bucket in constant time. ## Testing and Verifying Added unit test and also tested on localosmosis ## Documentation and Release Note - [x] Does this pull request introduce a new feature or user-facing behavior changes? - [x] Changelog entry added to `Unreleased` section of `CHANGELOG.md`? Where is the change documented? - [ ] Specification (`x/{module}/README.md`) - [ ] Osmosis documentation site - [ ] Code comments? - [ ] N/A (cherry picked from commit 9755013) Co-authored-by: Roman <[email protected]>
- Loading branch information
1 parent
f5ae903
commit 3e973c9
Showing
8 changed files
with
412 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
327 changes: 182 additions & 145 deletions
327
x/concentrated-liquidity/client/queryproto/query.pb.go
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.