Hide Difficulty Epoch on Liquid. Updated difficulty change calc.
This commit is contained in:
		
							parent
							
								
									bd2d94f662
								
							
						
					
					
						commit
						3dd76faf6c
					
				@ -34,7 +34,7 @@
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="col mb-4">
 | 
			
		||||
    <div class="col mb-4" *ngIf="(network$ | async) !== 'liquid'">
 | 
			
		||||
      <div class="card text-center">
 | 
			
		||||
        <div class="card-body">
 | 
			
		||||
          <h5 class="card-title txPerSecond">Difficulty epoch</h5>
 | 
			
		||||
 | 
			
		||||
@ -78,7 +78,7 @@ export class DashboardComponent implements OnInit {
 | 
			
		||||
        const diff = now - DATime;
 | 
			
		||||
        const blocksInEpoch = block.height % 2016;
 | 
			
		||||
        const estimatedBlocks = Math.round(diff / 60 / 10);
 | 
			
		||||
        const difficultyChange = blocksInEpoch / (diff / 60 / 10) - 1;
 | 
			
		||||
        const difficultyChange = (blocksInEpoch - (diff / 60 / 10)) / blocksInEpoch * 100;
 | 
			
		||||
 | 
			
		||||
        let base = 0;
 | 
			
		||||
        let green = 0;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user