From 71ca3f641583510f9848147bf6f3de5c1800e34e Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Thu, 18 Aug 2022 13:56:51 +0000 Subject: [PATCH] Better yearly inflation precision --- supply/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supply/index.html b/supply/index.html index ecbfc13..a88124c 100644 --- a/supply/index.html +++ b/supply/index.html @@ -223,7 +223,7 @@ $('.button-group').each( function( i, buttonGroup ) { block_reward /= 2; } var monthly_inflation = parseFloat( 100 * (block_reward * blocks_per_day * 30 / json.total)).toPrecision(2); - var yearly_inflation = parseFloat( 100 * (block_reward * blocks_per_day * 365 / json.total)).toPrecision(2); + var yearly_inflation = parseFloat( 100 * (block_reward * blocks_per_day * 365 / json.total)).toPrecision(4); $('#inflation').html( monthly_inflation + "% monthly, " + yearly_inflation + "% yearly" );