pub fn check_status<T: Config<I>, I: 'static>(index: SpendIndex)
Expand description

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.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::check_status.