cosmos-sdk icon indicating copy to clipboard operation
cosmos-sdk copied to clipboard

gov module can spend from community pool

Open hxrts opened this issue 3 years ago • 1 comments

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:

  1. have x/distribution send the tokens to x/gov module
  2. remove the notion of the FeePool in x/dstribution

detail from @cmwaters

I think you might also need to remove the msgs like FundCommunityPool A community spend proposal in the future should just be a MsgSend wrapped in a proposal coming from the gov account


For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned

hxrts avatar May 31 '22 15:05 hxrts

Thanks @hxrts! @marbar3778 let's be sure to get this into the next sprint.

alexanderbez avatar May 31 '22 21:05 alexanderbez