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

buyback and burn twap price #1359

Merged
merged 14 commits into from
Feb 12, 2025
Merged

buyback and burn twap price #1359

merged 14 commits into from
Feb 12, 2025

Conversation

sampocs
Copy link
Collaborator

@sampocs sampocs commented Feb 12, 2025

Context

Updated the osmosis price query and callback to look up the spot price from the TWAP store instead of the pool store. It gives a value that's agnostic to the pool type which makes unmarshalling easier.

Note to reviewer: Please give the most scrutiny to the UnmarshalSpotPriceFromOsmosis to make sure we're storing the price in the preferred way!

Brief Changelog

  • Added Twap struct to protos to it's generated along with our other protos
  • Removed osmosis deps
  • Updated query submission and callback
  • Fixed tests

@sampocs sampocs merged commit e20d1ce into bbb-integration-tests Feb 12, 2025
1 check passed
@sampocs sampocs deleted the bbb-twap-price branch February 12, 2025 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant