Add expected fee % diff to blocks list page

This commit is contained in:
Mononaut
2023-06-10 12:09:06 -04:00
parent bfb842d7ea
commit 93d24d1cf7
7 changed files with 44 additions and 14 deletions

View File

@@ -112,7 +112,14 @@ export class BlocksList implements OnInit, OnDestroy {
acc = acc.slice(0, this.widget ? 6 : 15);
}
return acc;
}, [])
}, []),
switchMap((blocks) => {
console.log(blocks);
blocks.forEach(block => {
block.extras.feeDelta = block.extras.expectedFees ? (block.extras.totalFees - block.extras.expectedFees) / block.extras.expectedFees : 0;
});
return of(blocks);
})
);
if (this.indexingAvailable && this.auditAvailable) {