Function: updateRewardPool(uint8 _pid, uint256 _endRewardTime, uint256 _rewardPerSecond)
This function is used by the owner to update the state of the rewardPool for a specific _pid.
Inputs
_pidControl: Arbitrary.
Constraints: Greater than or equal to zero and less than 256.
Impact: Index of
rewardPool.
_endRewardTimeControl: Arbitrary.
Constraints: Greater than or equal to
block.timestamp.Impact: Time that
rewardPooldistribution ends.
_rewardPerSecondControl: Arbitrary.
Constraints: None.
Impact: Reward-token amount to distribute per second.
Branches and code coverage
Intended branches
Update the state variables of the
rewardPoolwith index_pid.
Negative behavior
Revert if
endRewardTimeis greater than or equal toblock.timestamp.