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(x/twap): geometric twap genesis validation #4262

Merged
merged 1 commit into from
Feb 8, 2023
Merged

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Feb 8, 2023

Closes: #XXX

What is the purpose of the change

This broke state-exported testnet upgrade.

Geometric twap is allowed to be negative. This PR relaxes the validation and adds tests.

@p0mvn p0mvn added V:state/compatible/backport State machine compatible PR, should be backported A:backport/v15.x backport patches to v15.x branch labels Feb 8, 2023
@github-actions github-actions bot added the C:x/twap Changes to the twap module label Feb 8, 2023
@p0mvn p0mvn marked this pull request as ready for review February 8, 2023 17:10
@p0mvn p0mvn added the A:backport/v14.x backport patches to v14.x branch label Feb 8, 2023
@niccoloraspa
Copy link
Member

Thanks for fixing It so quickly!

@niccoloraspa
Copy link
Member

Tested now. It works!

@p0mvn p0mvn merged commit 5a32685 into main Feb 8, 2023
@p0mvn p0mvn deleted the roman/fix-geom-acc branch February 8, 2023 17:41
mergify bot pushed a commit that referenced this pull request Feb 8, 2023
mergify bot pushed a commit that referenced this pull request Feb 8, 2023
@ValarDragon
Copy link
Member

LGTM

p0mvn added a commit that referenced this pull request Feb 9, 2023
(cherry picked from commit 5a32685)

Co-authored-by: Roman <roman@osmosis.team>
p0mvn added a commit that referenced this pull request Feb 9, 2023
(cherry picked from commit 5a32685)

Co-authored-by: Roman <roman@osmosis.team>
@github-actions github-actions bot mentioned this pull request Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:backport/v14.x backport patches to v14.x branch A:backport/v15.x backport patches to v15.x branch C:x/twap Changes to the twap module V:state/compatible/backport State machine compatible PR, should be backported
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants