You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.
Right now we store account balances and transaction amounts in cents. That works for USD and other 2 decimal currencies, but doesn't work for things like bitcoin which have an indeterminate amount of decimal places. Also we make assumptions in the code when we do things like sorting by price that will need to take currencies into account.
For now, we don't need to figure everything out, since we aren't showing transactions yet, we just need a currency agnostic way to store the values for accounts that are still easily queryable.
The text was updated successfully, but these errors were encountered:
For now I've decided to just add a decimals field to define the number of decimal places and continue to store the balances as integers. We can think about this more in the future.
Right now we store account balances and transaction amounts in cents. That works for USD and other 2 decimal currencies, but doesn't work for things like bitcoin which have an indeterminate amount of decimal places. Also we make assumptions in the code when we do things like sorting by price that will need to take currencies into account.
For now, we don't need to figure everything out, since we aren't showing transactions yet, we just need a currency agnostic way to store the values for accounts that are still easily queryable.
The text was updated successfully, but these errors were encountered: