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

feat: EnableCommunityPoolFeeFunding #7

Merged
merged 2 commits into from
Apr 27, 2024
Merged

Conversation

Reecepbcups
Copy link
Member

The ability to disable community pool funding is very useful for ICS chains (which do not have a distr module)

Doing this for spawn rollchains/spawn#129 w/ Tokenfactory when removing staking, distr keeper, and mint.

@Reecepbcups Reecepbcups merged commit 7f70e76 into main Apr 27, 2024
6 checks passed
@Reecepbcups Reecepbcups deleted the reece/force-transfer-tweak branch April 27, 2024 03:05
@@ -84,8 +84,20 @@ func (k Keeper) chargeForCreateDenom(ctx sdk.Context, creatorAddr string, _ stri
return err
}

if err := k.communityPoolKeeper.FundCommunityPool(ctx, params.DenomCreationFee, accAddr); err != nil {
return err
if types.IsCapabilityEnabled(k.enabledCapabilities, types.EnableCommunityPoolFeeFunding) {
Copy link
Member Author

@Reecepbcups Reecepbcups May 4, 2024

Choose a reason for hiding this comment

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

useful for ICS chains which don't use Distribution. So the default off setting just burns it

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