Don't round signet difficulty in table and chart

This commit is contained in:
nymkappa
2022-07-10 14:32:15 +02:00
parent a99b52a735
commit eb71276948
3 changed files with 16 additions and 3 deletions

View File

@@ -335,6 +335,9 @@ export class HashrateChartComponent implements OnInit {
axisLabel: {
color: 'rgb(110, 112, 121)',
formatter: (val) => {
if (this.stateService.network === 'signet') {
return val;
}
const selectedPowerOfTen: any = selectPowerOfTen(val);
const newVal = Math.round(val / selectedPowerOfTen.divider);
return `${newVal} ${selectedPowerOfTen.unit}`;