pub fn provider_boost<T: Config>(
    target: MessageSourceId,
    amount: <<T as Config>::Currency as InspectFungible<<T as Config>::AccountId>>::Balance
)
Expand description

Stakes some amount of tokens to the network and generates a comparatively small amount of Capacity for the target, and gives periodic rewards to origin.

Errors

  • Error::InvalidTarget if attempting to stake to an invalid target.
  • Error::StakingAmountBelowMinimum if attempting to stake an amount below the minimum amount.
  • Error::CannotChangeStakingType if the staking account exists and staking_type is MaximumCapacity

Warning: Doc-Only

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