The protocol allows users to buy Snow tokens by paying a predefined buyFee per token using ETH or WETH.
However, during initialization, the buyFee is incorrectly multiplied by an additional 1e18, even though it is already denominated in wei. This results in an astronomically inflated fee, making token purchases economically infeasible.
Likelihood:
Occurs on every deployment since constructor logic always applies the incorrect scaling
Triggered on every call to buySnow, affecting all users attempting to purchase tokens
Impact:
Users are required to pay amounts exceeding realistic ETH/WETH supply
Core functionality (buying Snow tokens) becomes unusable, effectively causing a denial of service
The test below compares the expected fee (based on the input `BUY_FEE`) with the actual fee used by the contract (`s_buyFee`).
If additional precision is required, it should be consistently applied during calculations rather than during storage.
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.