In the buySnow function, if msg.value is provided but does not exactly equal s_buyFee * amount, the execution falls into the else block. The contract then transfers WETH from the user to cover the fee, but it fails to refund the originally sent ETH. This results in the user's ETH being taken by the contract in addition to the WETH fee, leading to a loss of funds for the user.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.