integritee-network / crowdloan

crowdloan status and community contributions
The Unlicense
0 stars 6 forks source link

handle token decimals generically #106

Open brenzi opened 2 years ago

brenzi commented 2 years ago

Token decimals can be derived from js/api and should not be hardcoded

The following should be done properly (generic decimals and better typing: this here can overflow?):

https://github.com/integritee-network/crowdloan/blob/6cd1fc649ca050a1e6be28cff477568608055c3b/src/Participate.js#L431

And this also

https://github.com/integritee-network/crowdloan/blob/c269fdde42b33db95f73ef5ec926d3f6bb77519c/src/Why.js#L95