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

Support CL pools in TX Fee module #7267

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Support CL pools in TX Fee module #7267

merged 2 commits into from
Jan 8, 2024

Conversation

mattverse
Copy link
Member

Closes: ##6783

What is the purpose of the change

Previously CL pools were not supported in tx fee module, as we were calculated sp via gamm keeper.
This PR changes it to use pool manager keeper instead for sp calculation

Testing and Verifying

This change added tests and can be verified as follows:

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 Jan 8, 2024
@github-actions github-actions bot added C:x/txfees C:app-wiring Changes to the app folder labels Jan 8, 2024
Copy link
Collaborator

@PaddyMc PaddyMc left a comment

Choose a reason for hiding this comment

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

Awesome, gg

@@ -65,7 +121,7 @@ func (s *KeeperTestSuite) TestUpgradeFeeTokenProposals() {
{
name: "proposal with non-existent pool",
feeToken: "foo",
poolId: 100000000000,
poolId: 10000000,
Copy link
Member

Choose a reason for hiding this comment

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

Why was this changed?

Copy link
Member Author

Choose a reason for hiding this comment

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

in pool manager keeper we only use 12 bytes for storing pool id, this requires 13 bytes & causes panic in tests thus needs to be lowered!

@ValarDragon ValarDragon merged commit af010a0 into main Jan 8, 2024
1 check passed
@ValarDragon ValarDragon deleted the mattverse/allow-txfee branch January 8, 2024 20:27
@github-actions github-actions bot mentioned this pull request Mar 15, 2024
@github-actions github-actions bot mentioned this pull request Apr 1, 2024
@github-actions github-actions bot mentioned this pull request Apr 15, 2024
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:x/txfees V:state/breaking State machine breaking PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants