Skip to content
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

fix: show more decimals to prevent visual rounding issues #83

Merged
merged 1 commit into from
Dec 17, 2024
Merged

Conversation

Albermonte
Copy link
Member

@Albermonte Albermonte commented Dec 17, 2024

Before:
image

After:
image

Not perfect solution but will fix most of the cases

@Albermonte Albermonte requested a review from onmax December 17, 2024 15:50
Copy link

Deploying validators-api-testnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: ba3f67d
Status: ✅  Deploy successful!
Preview URL: https://0ea0ade8.validators-api-testnet.pages.dev

View logs

Copy link

pkg-pr-new bot commented Dec 17, 2024

Open in Stackblitz

npm i https://pkg.pr.new/nimiq/validators-api/nimiq-albatross-policy@83
npm i https://pkg.pr.new/nimiq/validators-api/nimiq-rewards-calculator@83
npm i https://pkg.pr.new/nimiq/validators-api/nimiq-validators-trustscore@83
npm i https://pkg.pr.new/nimiq/validators-api/nimiq-supply-calculator@83

commit: b35cfc0

Copy link

Deploying validators-api-mainnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: ba3f67d
Status: ✅  Deploy successful!
Preview URL: https://48a653ff.validators-api-mainnet.pages.dev
Branch Preview URL: https://dev.validators-api-mainnet.pages.dev

View logs

@onmax
Copy link
Member

onmax commented Dec 17, 2024

For me fine. But we still have the root issue of JS precision....

Should we merge and create a task to use BigNumber.js?

@onmax onmax merged commit 76dc9cc into main Dec 17, 2024
7 checks passed
@Albermonte
Copy link
Member Author

For me fine. But we still have the root issue of JS precision....

Should we merge and create a task to use BigNumber.js?

I don´t think there's shuch a big issue, but yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants