Check the status of the spend and remove it from the storage if processed.
Dispatch Origin
Must be signed.
Details
The status check is a prerequisite for retrying a failed payout.
If a spend has either succeeded or expired, it is removed from the storage by this
function. In such instances, transaction fees are refunded.
Parameters
index: The spend index.
Events
Emits [Event::PaymentFailed] if the spend payout has failed.
Emits [Event::SpendProcessed] if the spend payout has succeed.
Check the status of the spend and remove it from the storage if processed.
Dispatch Origin
Must be signed.
Details
The status check is a prerequisite for retrying a failed payout. If a spend has either succeeded or expired, it is removed from the storage by this function. In such instances, transaction fees are refunded.
Parameters
index
: The spend index.Events
Emits [
Event::PaymentFailed
] if the spend payout has failed. Emits [Event::SpendProcessed
] if the spend payout has succeed.