Function pallet_capacity::pallet::dispatchables::stake
source · 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::ZeroAmountNotAllowed if the staker is attempting to stake a zero amount.
- Returns Error::InvalidTarget if attempting to stake to an invalid target.
- Returns Error::InsufficientStakingAmount if attempting to stake an amount below the minimum amount.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::stake
.