Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Bounties - reset curator deposit when curator unassigns themself. #10443

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

gautamdhameja
Copy link
Contributor

Fixes #10442

In the bounties pallet, in the unassign_curator extrinsic, under the arm where the sender is the curator themself, the bounty deposit is not reset to zero.
In other arms, this is being done as part of a utility function is used for slashing the deposit. But in this case, because we don't use this function, we should do this explicitly.

skip check-dependent-cumulus

@gautamdhameja gautamdhameja added A0-please_review Pull request needs code review. B7-runtimenoteworthy C3-medium PR touches the given topic and has a medium impact on builders. D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Dec 7, 2021
@gautamdhameja gautamdhameja changed the title Fix reset curator deposit when curator unassigns themself. Bounties - reset curator deposit when curator unassigns themself. Dec 7, 2021
@shawntabrizi
Copy link
Member

good catch

@gavofyork gavofyork merged commit 6a634fb into master Dec 9, 2021
@gavofyork gavofyork deleted the gd-bounties-fix branch December 9, 2021 14:16
seunlanlege pushed a commit to seunlanlege/substrate that referenced this pull request Dec 17, 2021
@viniul viniul added D1-audited 👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited and removed D9-needsaudit 👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited labels Dec 22, 2021
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C3-medium PR touches the given topic and has a medium impact on builders. D1-audited 👍 PR contains changes to fund-managing logic that has been properly reviewed and externally audited
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bounties does not reset curator_deposit when the curator unassigns themself
4 participants