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

chore: fixed stakedRatio calculation #82

Merged
merged 1 commit into from
Dec 13, 2024
Merged

chore: fixed stakedRatio calculation #82

merged 1 commit into from
Dec 13, 2024

Conversation

onmax
Copy link
Member

@onmax onmax commented Dec 13, 2024

Before

https://validators-api-mainnet.nuxt.dev/api/v1/distribution

{"staked":67458370100169600000,"circulating":12962153207.99921,"stakedRatio":5204256501.037162}

After

{
  "staked": 6745837010.01696,
  "circulating": 12962201045.21364,
  "stakedRatio": 0.520423729464364
}

@onmax onmax requested a review from Albermonte December 13, 2024 22:21
Copy link

Deploying validators-api-mainnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0e6d9ad
Status: ✅  Deploy successful!
Preview URL: https://fb9379d5.validators-api-mainnet.pages.dev
Branch Preview URL: https://dev.validators-api-mainnet.pages.dev

View logs

Copy link

Deploying validators-api-testnet with  Cloudflare Pages  Cloudflare Pages

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

View logs

Copy link

pkg-pr-new bot commented Dec 13, 2024

Open in Stackblitz

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

commit: ba3f67d

@onmax onmax merged commit 5ab06df into main Dec 13, 2024
7 checks passed
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