feat: display effective capacity (#643)

* feat: add stamp effective volume display (#636)

* refactor: make it cleaner (#636)

---------

Co-authored-by: Levente Kiss <levente.kiss@solarpunk.bzz>
This commit is contained in:
Levente Kiss
2024-01-08 22:54:32 +01:00
committed by GitHub
parent cc91f1d64c
commit 5871223203
2 changed files with 44 additions and 23 deletions
-4
View File
@@ -203,10 +203,6 @@ export function secondsToTimeString(seconds: number): string {
return `${unit.toFixed(1)} years`
}
export function convertDepthToBytes(depth: number): number {
return 2 ** depth * 4096
}
export function convertAmountToSeconds(amount: number, pricePerBlock: number): number {
// TODO: blocktime should come directly from the blockchain as it may differ between different networks
const blockTime = 5 // On mainnet there is 5 seconds between blocks