Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion substrate/frame/child-bounties/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,9 @@ pub mod pallet {
// Continue to change child-bounty status below.
},
};
ChildrenCuratorFees::<T>::mutate(parent_bounty_id, |value| {
*value = value.saturating_sub(child_bounty.fee)
});
// Move the child-bounty state to Added.
child_bounty.status = ChildBountyStatus::Added;
Ok(())
Expand Down Expand Up @@ -643,7 +646,7 @@ pub mod pallet {
);
// Move the child-bounty state to pending payout.
child_bounty.status = ChildBountyStatus::PendingPayout {
curator: signer,
curator: curator.clone(),
beneficiary: beneficiary.clone(),
unlock_at: Self::treasury_block_number() +
T::BountyDepositPayoutDelay::get(),
Expand Down