Skip to content

Remove Community Tax#278

Merged
Kbhat1 merged 3 commits into
masterfrom
kartik/CommunityPoolRemove
Oct 4, 2022
Merged

Remove Community Tax#278
Kbhat1 merged 3 commits into
masterfrom
kartik/CommunityPoolRemove

Conversation

@Kbhat1
Copy link
Copy Markdown
Contributor

@Kbhat1 Kbhat1 commented Oct 4, 2022

This PR sets the community tax param in distribution to 0 effectively removing the community pool

  1. Sets the default genesis state of the distribution module CommunityTax param to 0
  2. Adds in an upgrade 1.2.3beta where we perform the upgrade / store migration for the distribution module

@Kbhat1 Kbhat1 requested a review from philipsu522 October 4, 2022 15:14
Comment thread app/upgrades.go
if upgradeName == "1.2.3beta" {
newVM, err := app.mm.RunMigrations(ctx, app.configurator, fromVM)
if err != nil {
return newVM, err
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should we return nil, err here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yea I wasn't sure here. I defaulted to what osmosis did which was still returning the newVM with the err: https://github.com/osmosis-labs/osmosis/blob/c960e4a6d443d8d0a434179312e86c99600faae9/app/upgrades/v7/upgrades.go#L32 . But if this is better practice can change to nil

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ah shoudl be fine

@Kbhat1 Kbhat1 requested a review from philipsu522 October 4, 2022 16:16
@Kbhat1 Kbhat1 merged commit 32d4a2b into master Oct 4, 2022
masih pushed a commit that referenced this pull request Sep 29, 2025
## Describe your changes and provide context
The code incorrectly checks padding for address. 3 should be outside the
int cast
## Testing performed to validate your change
masih pushed a commit that referenced this pull request Sep 30, 2025
## Describe your changes and provide context
The code incorrectly checks padding for address. 3 should be outside the
int cast
## Testing performed to validate your change
@masih masih deleted the kartik/CommunityPoolRemove branch October 31, 2025 15:49
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.

2 participants