pallet_timegraph::pallet::dispatchables

Function transfer_award_to_user

Source
pub fn transfer_award_to_user<T: Config>(
    account: T::AccountId,
    amount: BalanceOf<T>,
)
Expand description

The extrinsic from timegraph allows transferring awards to a user

§Flow

  1. Ensure the origin is the timegraph account.
  2. Ensure the account is not the reward pool account.
  3. Check if the reward pool has enough balance.
  4. Transfer the specified amount from the reward pool account to the given account.
  5. Reserve the transferred amount in the given account.
  6. Emit a Event::TransferAwardToUser event.

§Warning: Doc-Only

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