-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delegated stake NaN display bug #236
Comments
rickstaa
added a commit
to rickstaa/explorer
that referenced
this issue
Dec 3, 2023
This commit depricates the use of the unmaintained [numeral-js](https://github.com/adamwdraper/Numeral-js) library and replaces it with the [numbro](https://github.com/BenjaminVanRyseghem/numbro). This was done to fix livepeer#236 and ensure the explorer is future proof.
rickstaa
added a commit
to rickstaa/explorer
that referenced
this issue
Dec 3, 2023
This commit deprecates the use of the unmaintained [numeral-js](https://github.com/adamwdraper/Numeral-js) library and replaces it with the [numbro](https://github.com/BenjaminVanRyseghem/numbro). This was done to fix livepeer#236 and ensure the explorer is future-proof.
This bug will be fixed if #237 is merged. |
rickstaa
added a commit
to rickstaa/explorer
that referenced
this issue
Dec 3, 2023
This commit deprecates the use of the unmaintained [numeral-js](https://github.com/adamwdraper/Numeral-js) library and replaces it with the [numbro](https://github.com/BenjaminVanRyseghem/numbro). This was done to fix livepeer#236 and ensure the explorer is future-proof.
rickstaa
added a commit
to rickstaa/explorer
that referenced
this issue
Dec 3, 2023
This commit deprecates the use of the unmaintained [numeral-js](https://github.com/adamwdraper/Numeral-js) library and replaces it with the [numbro](https://github.com/BenjaminVanRyseghem/numbro). This was done to fix livepeer#236 and ensure the explorer is future-proof.
rickstaa
added a commit
to rickstaa/explorer
that referenced
this issue
Dec 3, 2023
This commit deprecates the use of the unmaintained [numeral-js](https://github.com/adamwdraper/Numeral-js) library and replaces it with the [numbro](https://github.com/BenjaminVanRyseghem/numbro). This was done to fix livepeer#236 and ensure the explorer is future-proof.
rickstaa
added a commit
to rickstaa/explorer
that referenced
this issue
Dec 3, 2023
This commit deprecates the use of the unmaintained [numeral-js](https://github.com/adamwdraper/Numeral-js) library and replaces it with the [numbro](https://github.com/BenjaminVanRyseghem/numbro). This was done to fix livepeer#236 and ensure the explorer is future-proof.
rickstaa
added a commit
to rickstaa/explorer
that referenced
this issue
Dec 3, 2023
This commit deprecates the use of the unmaintained [numeral-js](https://github.com/adamwdraper/Numeral-js) library and replaces it with the [numbro](https://github.com/BenjaminVanRyseghem/numbro). This was done to fix livepeer#236 and ensure the explorer is future-proof.
0xcadams
added a commit
that referenced
this issue
Dec 12, 2023
* refactor: migrate numeral library to numbro This commit deprecates the use of the unmaintained [numeral-js](https://github.com/adamwdraper/Numeral-js) library and replaces it with the [numbro](https://github.com/BenjaminVanRyseghem/numbro). This was done to fix #236 and ensure the explorer is future-proof. * fix: fix argument typo Co-authored-by: Chase Adams <[email protected]> --------- Co-authored-by: Chase Adams <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
Upon closer inspection, I observed that the explorer displays
NaN
when an orchestrator has staked less than1e-6
LPT (e.g. https://explorer.livepeer.org/accounts/0x0074780feff1fd0277fad6ccdb5a29908df6051f/orchestrating). After investigating, it appears that this issue stems from a bug in the numeral library, as documented in this GitHub issue: adamwdraper/Numeral-js#596.Recommendation
Although this is not a big deal considering that the numeral-js library is currently unmaintained and the bug remains unresolved, I propose migrating to the actively maintained https://github.com/BenjaminVanRyseghem/numbro library. This alternative library has already addressed the bug mentioned, solving this issue and making the explorer more future-proof.
Extra info
The text was updated successfully, but these errors were encountered: