This report talks about the case, when _nextNumberOfTiers >= MAXIMUM_NUMBER_OF_TIERS inside _computeNextNumberOfTiers function. In this case, _nextNumberOfTiers variable will be returned as amount of tiers to be created for next draw, which is incorrect.
Solution
Old way of tiers calculation for the next draw has been removed. Now every time, when someone claim prize, then claimCount is increased. And this claimCount variable is used to detect amount of tiers for the next draw. As result, this issue doesn't exist anymore.
Lines of code
Vulnerability details
Issue mitigated
About the problem
This report talks about the case, when
_nextNumberOfTiers >= MAXIMUM_NUMBER_OF_TIERS
inside_computeNextNumberOfTiers
function. In this case,_nextNumberOfTiers
variable will be returned as amount of tiers to be created for next draw, which is incorrect.Solution
Old way of tiers calculation for the next draw has been removed. Now every time, when someone claim prize, then
claimCount
is increased. And thisclaimCount
variable is used to detect amount of tiers for the next draw. As result, this issue doesn't exist anymore.