-
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
Add stableswap to pooltype, and pooltype query to stargate whitelist #3356
Conversation
@ValarDragon I don't think an individual pool query for type is a good performance move here (prob good to have in general, though). IMO we should include the type, and include nullable scaling factors in the existing pools query and pool model |
That definitely doesn't make sense for the general query. Its bad design to have fields that have no sensical interpretation for a given type configuration. What is instead available right now is interpreting the result of the pool query as a protobuf I'd prefer for the single query, we handle the pool enum complexity for it. |
OK. I didn't know protobuf could handle a union/sum type like that. Yeah then that would be ideal to have a union of each of the types of pools. Then the pools (plural) query could contain a list of that union type. |
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!
@@ -81,6 +87,21 @@ func (s *KeeperTestHelper) PrepareBalancerPool() uint64 { | |||
return poolId | |||
} | |||
|
|||
func (s *KeeperTestHelper) PrepareBasicStableswapPool() uint64 { |
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.
Nice!
…3356) (#3366) * Add stableswap to pooltype, and pooltype query to stargate whitelist * Add test / make test scaffolding for stableswap. Fix validate basic bug * Changelog entry (cherry picked from commit 66ec9c2) Co-authored-by: Dev Ojha <[email protected]>
What is the purpose of the change
Resolves an issue pointed out by @jonator
Brief Changelog
Testing and Verifying
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? yes