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:
parent
eccb06383b
commit
5f67ba2279
1 changed files with 1 additions and 6 deletions
|
@ -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 }}_
|
||||
|
|
Reference in a new issue