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

refactor: state-breaking BigDec spot price changes and stargate whitelist #6490

Closed
wants to merge 10 commits into from

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Sep 21, 2023

Closes: #6064, #6406

What is the purpose of the change

State-breaking changes to enable 36 decimal spot price query. Includes stargate whitelist for the new query.

Addresses all TODOs in the linked issue.

There is some diff that stems from template code-generation empty lines.

Testing and Verifying

  • Covered by existing tests

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

@github-actions github-actions bot added C:x/gamm Changes, features and bugs related to the gamm module. C:x/txfees C:x/concentrated-liquidity C:x/poolmanager labels Sep 21, 2023
@p0mvn p0mvn added V:state/breaking State machine breaking PR and removed C:x/gamm Changes, features and bugs related to the gamm module. C:x/txfees C:x/concentrated-liquidity C:x/poolmanager labels Sep 21, 2023
@github-actions github-actions bot added C:x/gamm Changes, features and bugs related to the gamm module. C:x/txfees C:x/concentrated-liquidity C:x/poolmanager labels Sep 21, 2023
Comment on lines -86 to +92
return osmomath.MustNewBigDecFromStr(response.SpotPrice), nil

result, err := osmomath.NewBigDecFromStr(response.SpotPrice)
if err != nil {
return osmomath.BigDec{}, err
}

return result, nil
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: This is a precaution and a follow-up to a review discussion.

Ref: #6406

@github-actions github-actions bot added C:CLI C:app-wiring Changes to the app folder C:x/twap Changes to the twap module labels Sep 22, 2023
return q.Q.{{.QueryName}}(ctx, *req)
return q.Q.{{.QueryName}}{{ $version | ToUpper }}(ctx, *req)
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: this is needed to avoid conflicts and name clashes with v1

Base automatically changed from roman/v2-spot-price to main September 27, 2023 20:56
@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you!

@github-actions github-actions bot added the Stale label Oct 12, 2023
@github-actions github-actions bot closed this Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:app-wiring Changes to the app folder C:CLI C:x/concentrated-liquidity C:x/gamm Changes, features and bugs related to the gamm module. C:x/poolmanager C:x/twap Changes to the twap module C:x/txfees Stale V:state/breaking State machine breaking PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(CL): query for spot price with 36 decimals
1 participant