Replies: 3 comments 5 replies
-
If the winner is a smart contract that rejects the payment, that won't make this condition revert require(
address(this).balance == uint256(totalFees),
"PuppyRaffle: There are currently players active!"
); I would like more explanation to understand better what you are pointing out. |
Beta Was this translation helpful? Give feedback.
-
That winning smart contract would lose his opp. to withdraw and on next spin there could have a different winner. I think IMO your point isn't wrong that much. In some other scenarios your point could be validated. However it's not that one ;`) |
Beta Was this translation helpful? Give feedback.
-
To clear @Kenn-eth 's doubt it would be enough to say that |
Beta Was this translation helpful? Give feedback.
-
The
withdrawFees
function requires this:This means that apart from resetting the raffle, if the winner is a smart contract that rejects payments, then
totalFees
cannot be withdrawn, disrupting the entire functionality of the smart contract. Does this make this finding a high instead of a medium?Beta Was this translation helpful? Give feedback.
All reactions