-
Notifications
You must be signed in to change notification settings - Fork 116
introduce_channel_state_bloat_bond #3821
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
introduce_channel_state_bloat_bond #3821
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
| // | ||
|
|
||
| let _ = Balances::<T>::slash(&sender, channel_state_bloat_bond); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we not credit the bloat bond to some treasury account? I don't actually remember, what do we do for bounties or in the storage pallet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we credited to StorageTreasury, in bounties we had a Council Budget, that's why I got confused about using content workgroup budget account instead of simply the sender's account. Since, for example, channel transfer uses the budget or the sender based on which type is the owner.
I implemented with an imbalance, and always used the sender's account, the reason I didn't use the storage treasury, was I thought we wanted to move this logic away from the storage pallet
In my opinion, we should use the following (I implemented this way at first, but then I step back since it was not clear to me if I should use it)
Lead -> Senders account
Memeber - > Senders account
Curator Group -> Content working group budget
We should also break the functions that transfer funds so they do not fail, as we did in bounties
dobertRowneySr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cosmetics, otherwise LGTM. Good job!
a6b6918 to
719ba69
Compare
dobertRowneySr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
996f4eb to
1202fc7
Compare
These should be fixed see mnaamani#13 |
requested changes Carthage T: Trait fix
1202fc7 to
a9a875f
Compare
When creating a channel, the sender gets slashed channel state bloat bond
When deleting a channel sender gets paid the channel state bloat bond amount
Uses the
funds_needed_for_uploadimplemented here #3693 to verify the funds needed before chargingthe channel state bloat bond
┆Issue is synchronized with this Asana task by Unito