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

Various constants and implementations for decimal precision #1118

Open
roxdanila opened this issue Jun 4, 2024 · 0 comments
Open

Various constants and implementations for decimal precision #1118

roxdanila opened this issue Jun 4, 2024 · 0 comments
Labels
enhancement New feature or request system

Comments

@roxdanila
Copy link
Contributor

Various contracts throughout the code base redefine the precision constant as 18 decimals and reimplement common operations. Instead, a library that implements 18 decimal precision operations should be used for all decimals. Typically, the library should implement the following:

  • preciseMul
  • preciseMulCeil
  • preciseDiv
  • preciseDivCeilUnused SafeMath
@roxdanila roxdanila added enhancement New feature or request system labels Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request system
Projects
Status: ⚖ Backlog
Development

No branches or pull requests

1 participant