-
Notifications
You must be signed in to change notification settings - Fork 607
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
refactor: improve ListPoolsByDenom filter logic #6884
refactor: improve ListPoolsByDenom filter logic #6884
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch once again! Thanks for this PR :) Let's merge this as soon as we make CI happy (slice package replacement)
@mattverse I have replaced |
@levisyin Thanks so much! Can we add changelog so that we can track this PR after merged and include it in our future release? |
@mattverse Changelog has been updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
Refer to PR #6766, get pool denoms info by
k.GetTotalPoolLiquidity
will lead to:k.poolModules
range iteratorcoins.AmountOf(denom).GT(osmomath.ZeroInt())
is odd, although there is no pool with zero amount tokenTesting and Verifying
This change is already covered by existing tests, such as TestListPoolsByDenom.