Skip to content

Commit

Permalink
fix: using connector weight for ram calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
dafuga committed Oct 29, 2024
1 parent c73e3ef commit 4386af8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/[network]/(account)/ram/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 4386af8

Please sign in to comment.