pub fn stake<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 Capacity.
§Errors
- Returns Error::InvalidTarget if attempting to stake to an invalid target.
- Returns Error::StakingAmountBelowMinimum if attempting to stake an amount below the minimum amount.
- Returns Error::CannotChangeStakingType if the staking account is a ProviderBoost account
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::stake
.