Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ABDK 22 - Remove .decimals() usage #27

Merged
merged 9 commits into from
May 10, 2022
Merged

ABDK 22 - Remove .decimals() usage #27

merged 9 commits into from
May 10, 2022

Conversation

pyk
Copy link
Contributor

@pyk pyk commented May 10, 2022

Report

In ERC20 the optional property "decimals" is used by UI to render token amounts in a human-friendly way. Using this property in smart contracts is discouraged.

Recommendation

Consider treating all token amounts as integers.

@linear
Copy link

linear bot commented May 10, 2022

@pyk pyk merged commit a6e345f into main May 10, 2022
@pyk pyk deleted the RIS-72 branch May 10, 2022 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant