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

test: validate negative interval accumulation does not panic when serialized #5873

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Jul 18, 2023

Closes: #5854

What is the purpose of the change

This test is a final sanity check to ensure that negative interval accumulation (that is DecCoins) do not panic when serialized or deserialized

Testing and Verifying

Added test

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

@p0mvn p0mvn added V:state/compatible/no_backport State machine compatible PR, depends on prior breaks A:no-changelog labels Jul 18, 2023
@p0mvn p0mvn marked this pull request as ready for review July 18, 2023 17:21
@p0mvn p0mvn requested a review from czarcas7ic as a code owner July 18, 2023 17:21

export := s.clk.ExportGenesis(s.Ctx)

s.SetupTest()
Copy link
Member

Choose a reason for hiding this comment

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

why are we calling SetupTest here again?

Copy link
Member

Choose a reason for hiding this comment

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

It clears any state created earlier so when we init gen we are doing so from scratch

@czarcas7ic czarcas7ic merged commit c8bf39d into roman/fix-neg-range-repro-incentives Jul 24, 2023
@czarcas7ic czarcas7ic deleted the roman/test-neg-interval-serialize branch July 24, 2023 15:56
czarcas7ic added a commit that referenced this pull request Aug 1, 2023
…5872)

* fix/test/docs: negative interval accumulation with spread rewards

* changelog

* updates

* go mod

* fix/test/docs: negative interval accumulation with incentive rewards

* changelog

* updates

* update go.mod

* test: validate negative interval accumulation does not panic when serialized and deserialized (#5873)

* update osmoutils

* go mod tidy

---------

Co-authored-by: Adam Tucker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:no-changelog C:x/concentrated-liquidity V:state/compatible/no_backport State machine compatible PR, depends on prior breaks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants