Function pallet_dapp_staking::pallet::dispatchables::stake
source · pub fn stake<T: Config>(smart_contract: T::SmartContract, amount: Balance)
Expand description
Stake the specified amount on a smart contract.
The precise amount
specified must be available for staking.
The total amount staked on a dApp must be greater than the minimum required value.
Depending on the period type, appropriate stake amount will be updated. During Voting
subperiod, voting
stake amount is updated,
and same for Build&Earn
subperiod.
Staked amount is only eligible for rewards from the next era onwards.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::stake
.