Cancel an active child-/bounty. A payment to send all the funds to the funding source is initialized.
This function can only be called by the RejectOrigin or the parent bounty curator.
RejectOrigin
Funded
Active
check_status
retry_payment
parent_bounty_id
child_bounty_id
Emits [Event::BountyCanceled] and [Event::Paid] if successful.
Event::BountyCanceled
Event::Paid
Cancel an active child-/bounty. A payment to send all the funds to the funding source is initialized.
Dispatch Origin
This function can only be called by the
RejectOriginor the parent bounty curator.Details
Fundedstate, a refund payment is initiated.Activestate, a refund payment is initiated and the child-/bounty status is updated with the curator account/location.check_statuscall before retrying withretry_paymentcall.Parameters
parent_bounty_id: Index of parent bounty.child_bounty_id: Index of child-bounty.Events
Emits [
Event::BountyCanceled] and [Event::Paid] if successful.