Functionsยง
- add_
stake - Stakes
amount
tokens fromstaker
tostaked
by withdrawing the tokens and adding them to thecrate::StakingTo
andcrate::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
).