entranceFee
by the user is not added to the totalFees variable
, which will result in a loss of funds
In the PuppyRaffle::enterRaffle()
function, the users are sending a given amount of money in order to join the raffle. The problem is that the value sent from the users (msg.value) is not added to the totalFees
address, which is a variable that is responsible for storing the protocol fee amount. This issue will cause a loss of funds for the protocol and the user with the 'fee address' to which the fees are transferred.
Loss of funds for the protocol and the user with the feeAddress
Manual Review
Consider adding the msg.value amount send from the users transaction to the totalFees
state variable.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.