Closed elrondex closed 2 years ago
Same problem on mainnet https://explorer.elrond.com/tokens/WEGLD-6823c1/accounts
The API returns correct amounts that add up. this is a front-end issue and has been reported internally
Update: this is actually a javascript issue, since there are precision issues with handling Numbers. Here is an example in Google Chrome's javascript console:
The value 0.60395483429230088 when assigned to a Number, actually has the value 0.6039548342923009
@tanghel Thanks for update. On server side balance and supply is stored as string and sum is done with BigInt, this looks good for me. In that case client need to find better way to convert to decimal number (Bigdecimal or similar)
Thanks for clarification! @elrondex
The client seems to be fine. The numbers indeed add up if you manually add them up, but not in a javascript console :)
Glad to help!