Archived
1
0
Fork 0

feat: Chia blocks need more precision

Block rewards of Chia blockchain were fixed to 1.75 XCH. Now, they
include a variable transaction fee. This commit sets the precision to 6
digits after the floating point, like Ethereum block rewards.

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-11-04 18:47:59 +01:00
parent eccb06383b
commit 5f67ba2279
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7

View file

@ -1,6 +1 @@
🎉 *{{ convertAction .Pool.Coin }}* [#{{ .Block.Number }}]({{ formatBlockURL .Pool.Coin .Block.Hash }}) _
{{- if (eq .Pool.Coin "xch") -}}
{{ printf "%.2f" (convertCurrency .Pool.Coin .Block.Reward) }}
{{- else -}}
{{ printf "%.6f" (convertCurrency .Pool.Coin .Block.Reward) }}
{{- end }} {{ upper .Pool.Coin }}_
🎉 *{{ convertAction .Pool.Coin }}* [#{{ .Block.Number }}]({{ formatBlockURL .Pool.Coin .Block.Hash }}) _{{ printf "%.6f" (convertCurrency .Pool.Coin .Block.Reward) }} {{ upper .Pool.Coin }}_