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
- Ensure the origin is the timegraph account.
- Ensure the account is not the reward pool account.
- Check if the reward pool has enough balance.
- Transfer the specified amount from the reward pool account to the given account.
- Reserve the transferred amount in the given account.
- 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
.