buidl-labs / livepeer-pricing-tool

A tool for enhancing the price visibility in livepeer ecosystem.
http://livepeer-pricingtool.surge.sh/
4 stars 2 forks source link

Formatting large numbers #6

Closed prastut closed 4 years ago

prastut commented 4 years ago

Current Delegated Stake numbers are not easy to read

eg: 879835.8118972158 LPT

A easier version to read is 879,835.81 LPT

Recommended library to use: https://github.com/s-yadav/react-number-format#readme

Saumay-Agrawal commented 4 years ago

Your advice needed.

Situation:

NOTE: This was the cause behind the broken sorting of the Delegated Stake column. Pointing the row comparer to raw delegated stake values has fixed that issue.

Ask: What would be the optimum methodology for the Delegated Stake value conversion (breakpoint at which LPTU is converted into LPT, which right now is 10^12)? Formatting would just be a function of this issue.

prastut commented 4 years ago

Lack sufficient vantage to answer this. Need to understand the state of mind of the orchestrator to better answer this.

Deprioritize for now. Put this on the call of things we need to discuss.