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
Store amounts as strings #716
Comments
This needs to be updated with the list of cases where such conversion happens, or else the scope of work/problem is unclear. |
Reference of all the colum names associated with money in database:
|
FYI @ManuGowda , here it is the database model as a html page. I hang it up in the wall behind my desk since ages. |
All LSK values like balances, fees, amounts in transactions, etc. should be stored as strings in JS and never casted/converted to numbers - in entire application. Calculations should be done via
BigNumber
, database layer is not affected (we useBIGINT
there).The text was updated successfully, but these errors were encountered: