From 0e6d9add46d3cc23fa3c59a3a7cb792d0d6df22f Mon Sep 17 00:00:00 2001 From: onmax Date: Sat, 14 Dec 2024 11:20:07 +1300 Subject: [PATCH] chore: fixed stakedRatio calculation --- server/api/[version]/distribution.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/[version]/distribution.ts b/server/api/[version]/distribution.ts index 7e6a096..6e19473 100644 --- a/server/api/[version]/distribution.ts +++ b/server/api/[version]/distribution.ts @@ -21,7 +21,7 @@ export default defineCachedEventHandler(async () => { ) .get() - const staked = (result?.totalStaked ?? 0) * 1e5 + const staked = (result?.totalStaked ?? 0) / 1e5 const { data: latestBlock, error: errorCurrentEpoch } = await getRpcClient().blockchain.getLatestBlock() if (errorCurrentEpoch)