Skip to content

Commit

Permalink
fix: show current postage stamp price per block (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechsimetka authored Apr 24, 2022
1 parent 0a69409 commit 906a457
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/stamps/PostageStampCreation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export function PostageStampCreation({ onFinished }: Props): ReactElement {

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 {
Expand Down

0 comments on commit 906a457

Please sign in to comment.