Browse Source

Better yearly inflation precision

onryo
Duke Leto 2 years ago
parent
commit
71ca3f6415
  1. 2
      supply/index.html

2
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" );

Loading…
Cancel
Save