diff --git a/substrate/frame/child-bounties/src/lib.rs b/substrate/frame/child-bounties/src/lib.rs index 1ac8d1e94d27c..b42ffb05f36ee 100644 --- a/substrate/frame/child-bounties/src/lib.rs +++ b/substrate/frame/child-bounties/src/lib.rs @@ -590,6 +590,9 @@ pub mod pallet { // Continue to change child-bounty status below. }, }; + ChildrenCuratorFees::::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(()) @@ -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(),