[L-02] The same address could exist multiple times in winnerAddresses[]
Severity
Impact: Low
Likelihood: Low
Description
The winnerAddresses[] list stores all winner addresses. However, the same address can be added to this list more than once. In the LotteryV2Base contract, users can roll a new random number even after claiming the winning number. If this new random number is a winning number, users can call claimNumber() to add their addresses to the winnerAddresses[] list again.
Recommendations
Consider preventing the same address from being added to the winnerAddresses[] list multiple times in LotteryV2Base.
[L-02] The same address could exist multiple times in
winnerAddresses[]
Severity
Impact: Low
Likelihood: Low
Description
The
winnerAddresses[]
list stores all winner addresses. However, the same address can be added to this list more than once. In theLotteryV2Base
contract, users can roll a new random number even after claiming the winning number. If this new random number is a winning number, users can callclaimNumber()
to add their addresses to thewinnerAddresses[]
list again.Recommendations
Consider preventing the same address from being added to the
winnerAddresses[]
list multiple times inLotteryV2Base
.