Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

Wrong Decimal Value

Summary

The widely adopted standard for token decimals is e18. However, currently even when the variable name is DECIMALS , we are not multiplying by e18 but by 18.

Vulnerability Details

One Ether is equal to 1e18 wei, and the initializations logically need to be x * e18 for general usage. However, the current implementation is not acceptable for the widespread initialization of tokens.

Impact

The amount of tokens minted at initialization is 1e18 times lower than what it should be.

Tools Used

Manual reading

Recommendations

It is recommended to adjust the initialization process by changing the variable DECIMALS from 18 to e18 to align with the expected standard in the blockchain community.

Updates

Lead Judging Commences

inallhonesty Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.