Skip to content

feat: consumer fee pool deposits with per-depositor shares#46

Draft
giunatale wants to merge 18 commits into
mainfrom
giunatale/fee-pool-deposits
Draft

feat: consumer fee pool deposits with per-depositor shares#46
giunatale wants to merge 18 commits into
mainfrom
giunatale/fee-pool-deposits

Conversation

@giunatale
Copy link
Copy Markdown
Contributor

closes #37

supersedes #37 with a share-based per-depositor design: every deposit mints shares for the signer (or, for gov-authority deposits - meaning funding from community pool, for the distribution module account). Each depositor controls their own withdraw, the consumer owner can trigger a pro-rata sweep. Auto-sweep on consumer delete settles the pool.
A bank.SendRestriction rejects bank transfers to fee pools so the share accounting can never drift from the pool balance.

See docs/consumer-fee-pool.md for more details.

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.

feat(x/provider): governance-gated MsgWithdrawConsumerFeePool

1 participant