cosmos-sdk
cosmos-sdk copied to clipboard
gov module can spend from community pool
Summary
Improve gov module UX regarding fund distribution by making community pool directly spendable via gov message.
Problem Definition
With the recent gov/groups alignment work https://github.com/cosmos/cosmos-sdk/issues/9438 the gov module is now capable of sending arbitrary messages. A common pattern will be for chain governance to move funds to another account, often over IBC. As the community pool is currently part of the distribution module, not gov, funds in the treasury would first need to be moved from the distribution module to the gov module via legacy community spend proposal, then the gov module could perform the IBC send. This UX is suboptimal and likely confusing for token holders.
Additionally we would like the gov module to create fee grants from the community pool, which would simplify lazy execution where gas may be unknown during the original gov proposal.
Proposal
@alexanderbez's suggested approach:
- have
x/distributionsend the tokens tox/govmodule - remove the notion of the
FeePoolinx/dstribution
detail from @cmwaters
I think you might also need to remove the msgs like
FundCommunityPoolA community spend proposal in the future should just be aMsgSendwrapped in a proposal coming from the gov account
For Admin Use
- [ ] Not duplicate issue
- [ ] Appropriate labels applied
- [ ] Appropriate contributors tagged
- [ ] Contributor assigned/self-assigned
Thanks @hxrts! @marbar3778 let's be sure to get this into the next sprint.