pub fn add_stake<T: Config>(
staker: <T as Config>::AccountId,
staked: <T as Config>::AccountId,
amount: <<T as Config>::Currency as Currency<<T as Config>::AccountId>>::Balance,
) -> DispatchResult
Expand description
Stakes amount
tokens from staker
to staked
by withdrawing the tokens
and adding them to the crate::StakingTo
and crate::StakedBy
maps.