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

fix: add pool manager spot price query to stargate whitelist #5503

Merged
merged 3 commits into from
Jun 13, 2023

Conversation

mattverse
Copy link
Member

Closes: #XXX

What is the purpose of the change

Gamm v2 spot price qurey has been marked deprecated, whilst we have created a new query for spot price in the pool manager.

We did not deprecate it in stargate whitelist though, having the old query still in stargate whitelist.
This PR submits a change so that we use the new query for spot price in stargate whitelist.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • 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

@mattverse mattverse added the V:state/breaking State machine breaking PR label Jun 13, 2023
@@ -93,7 +92,6 @@ func init() {
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/CalcExitPoolCoinsFromShares", &gammtypes.QueryCalcExitPoolCoinsFromSharesResponse{})
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/CalcJoinPoolNoSwapShares", &gammtypes.QueryCalcJoinPoolNoSwapSharesResponse{})
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/PoolType", &gammtypes.QueryPoolTypeResponse{})
setWhitelistedQuery("/osmosis.gamm.v2.Query/SpotPrice", &gammv2types.QuerySpotPriceResponse{})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't do this, it'd break any existing contract

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep both though and specify we don't want this one to be used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense since we don't delete the deprecated protos as well

@ValarDragon ValarDragon changed the title fix: Deprecate gamm v2 spotprice and add pool manager spot price query to stargate whitelist fix: add pool manager spot price query to stargate whitelist Jun 13, 2023
@ValarDragon ValarDragon merged commit 4abfde5 into main Jun 13, 2023
@ValarDragon ValarDragon deleted the mattverse/sp-register branch June 13, 2023 15:45
@github-actions github-actions bot mentioned this pull request Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V:state/breaking State machine breaking PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants