From 4386af8e561e31ef18c1b770ab4523186cdb37c2 Mon Sep 17 00:00:00 2001 From: dafuga Date: Mon, 28 Oct 2024 18:10:01 -0700 Subject: [PATCH] fix: using connector weight for ram calculation --- src/routes/[network]/(account)/ram/+page.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/[network]/(account)/ram/+page.svelte b/src/routes/[network]/(account)/ram/+page.svelte index 1ecd262a..44a324e0 100644 --- a/src/routes/[network]/(account)/ram/+page.svelte +++ b/src/routes/[network]/(account)/ram/+page.svelte @@ -23,8 +23,9 @@ $effect(() => { if (ramState) { const quoteBalanceEOS = ramState.quote.balance.value; + const connectorWeight = ramState.quote.weight.value; marketCapEOS = Asset.from( - quoteBalanceEOS, + quoteBalanceEOS / connectorWeight, data.network.chain.systemToken?.symbol || '0, UNKNOWN' ); ramSupply = Asset.from((ramState?.base.balance.value || 0) / (1000 * 1000 * 1000), '2,GB');