Joystream / Joystream/joystream

Protect channel account dusting: introduce channel state bloat bond

Open
#3,511 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

audit-3 content-pallet runtime
Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Background

So channel state bloat is indirectly deterred by the fact that there is a storage bag state bloat bond which is put up, and all channels have 1-1 relationship with lifetime of a dynamic bag. However, there is still the problem of the channel account risking getting dusted, as outlined here https://github.com/Joystream/joystream/issues/3497, for this reason we may as well introduce a state bloat bond, as it is functionally a solution to the state bloat bond. Moreover, dynamic bag bloat bonds are going away: https://github.com/Joystream/joystream/issues/3580

Dependency

https://github.com/Joystream/joystream/issues/3580

Proposal

Add state bloat bond, paid by creator at point of channel creation, and returned to whomever deletes channel. Fund with membership of caller, even if curator group or lead.

An alternative solution which could have served the same purpose would be to just mint this upon channel creation, however, as we are removing bloat bonds for dynamic bags (https://github.com/Joystream/joystream/issues/3580), a genuine user funded bloat bond is now needed to solve both state protection and channel account dusting.

┆Issue is synchronized with this Asana task by Unito

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.