Module stake

Source

Functionsยง

add_stake
Stakes amount tokens from staker to staked by withdrawing the tokens and adding them to the crate::StakingTo and crate::StakedBy maps.
get_staked_by_vector
get_staking_to_vector
remove_stake
Withdraws stake from an agent and gives it back to the staker.
sum_staked_by
sum_staking_to
transfer_stake
Transfers stake from an account to another (see remove_stake, add_stake).