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

Updated /distribution endpoint #54

Merged
merged 5 commits into from
Nov 23, 2024
Merged

Updated /distribution endpoint #54

merged 5 commits into from
Nov 23, 2024

Conversation

onmax
Copy link
Member

@onmax onmax commented Nov 23, 2024

No description provided.

Copy link

cloudflare-workers-and-pages bot commented Nov 23, 2024

Deploying validators-api with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4099fd6
Status:🚫  Build failed.

View logs

Copy link

cloudflare-workers-and-pages bot commented Nov 23, 2024

Deploying validators-api-testnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4099fd6
Status:🚫  Build failed.

View logs

Copy link

pkg-pr-new bot commented Nov 23, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/nimiq/validators-api/nimiq-rewards-calculator@54
pnpm add https://pkg.pr.new/nimiq/validators-api/nimiq-supply-calculator@54
pnpm add https://pkg.pr.new/nimiq/validators-api/nimiq-validators-trustscore@54

commit: 4099fd6

Copy link

cloudflare-workers-and-pages bot commented Nov 23, 2024

Deploying validators-api-mainnet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4099fd6
Status: ✅  Deploy successful!
Preview URL: https://0d2907b4.validators-api-mainnet.pages.dev
Branch Preview URL: https://onmax-distribution.validators-api-mainnet.pages.dev

View logs

Copy link

cloudflare-workers-and-pages bot commented Nov 23, 2024

Deploying validators-api-2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4099fd6
Status: ✅  Deploy successful!
Preview URL: https://0aa88372.validators-api-2.pages.dev
Branch Preview URL: https://onmax-distribution.validators-api-2.pages.dev

View logs

@@ -21,12 +21,12 @@ export default defineCachedEventHandler(async () => {
)
.get()

const staked = result?.totalStaked ?? 0
const staked = (result?.totalStaked ?? 0) * 1e5
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The totalStaked stored in the database is in NIM not Lunas.

@Albermonte Albermonte merged commit 7c1fe25 into dev Nov 23, 2024
4 of 6 checks passed
@Albermonte Albermonte deleted the onmax/distribution branch November 23, 2024 17:55
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