AutarkLabs / open-enterprise

A suite of apps that includes allocation, dot voting, issue curation, and other planning tools so organizations can collectively budget and design custom reward & bounty systems.
GNU General Public License v3.0
92 stars 54 forks source link

Allocation: add support for tokens with different decimal amounts #1787

Closed e18r closed 4 years ago

e18r commented 4 years ago

Fixes #1646

The displayAmount helper function assumed that every token amount had 18 decimals, which caused trouble with any token with a different amount of decimals. I corrected that helper function and put it in shared/ui so that other apps can benefit from it in the future.

e18r commented 4 years ago

I'm not sure what happened here. @rkzel did you merge this and then reverted the merge? Does this still need to be reviewed and merged?