fix: show current postage stamp price per block (#348)
This commit is contained in:
@@ -52,7 +52,9 @@ export function PostageStampCreation({ onFinished }: Props): ReactElement {
|
|||||||
|
|
||||||
const pricePerBlock = Number.parseInt(chainState.currentPrice, 10)
|
const pricePerBlock = Number.parseInt(chainState.currentPrice, 10)
|
||||||
|
|
||||||
return `${secondsToTimeString(convertAmountToSeconds(amount, pricePerBlock))} (with price of 0 per block)`
|
return `${secondsToTimeString(
|
||||||
|
convertAmountToSeconds(amount, pricePerBlock),
|
||||||
|
)} (with price of ${pricePerBlock.toFixed(0)} per block)`
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPrice(depth: number, amount: bigint): string {
|
function getPrice(depth: number, amount: bigint): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user