However stakers can call start_staking multiple times in the same block. which mean that StakingRewardPool will be updated only once because of the following condition:
if (block.number > LastBlock)
{
....
}
The previous used CurrentBlockDeposits might solve this issue.
StakingRewardPool is updated once inside
newBlock()
function:However stakers can call start_staking multiple times in the same block. which mean that StakingRewardPool will be updated only once because of the following condition:
The previous used
CurrentBlockDeposits
might solve this issue.