pallet_timegraph::pallet::dispatchables

Function set_threshold

Source
pub fn set_threshold<T: Config>(amount: BalanceOf<T>)
Expand description

The extrinsic allows setting a new threshold

§Flow

  1. Ensure the origin is the root account.
  2. Ensure the new threshold amount is different from the current threshold.
  3. Emit a Event::ThresholdReset event.
  4. Set the new threshold amount.

§Warning: Doc-Only

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