Snow.sol has defined a constant PRECISION value to indicate the token decimals. The PRECISION value is currently only used inside the constructor, where it scales the _buyFee argument.
The issue is currently categorized as low in severity, because coincidentally both PRECISION and the decimals() default getter are set to return 18. This issue would've been at a higher severity if both of these values were not equal.
If both values were not equal, this may had caused decimal mismatches / inconsistencies, mainly for displaying transaction amount.
Let's assume that right now:
If the contract deployer were to initialize with _buyFee = 5, then:
The fix is to override decimals() by returning PRECISION.
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.