Convenience functions for calculating the CCDAmount from Energy #272
Labels
good first issue
Good for newcomers
[Prio] Low
Should be fixed if time permits but can be postponed.
[Size] Small
[Type] Task
An additional feature or improvement.
The SDK could expose a couple of convenience functions for calculating the
CCDAmount
fromEnergy
and the other way around. This would be useful when estimating the fee of a transaction.Extra: It could also be useful having a function that exposed the CCDAmount in EUR.
To implement this feature one should use the
euroPerEnergy
andmicroCCDPerEnergy
from the chain parameters for a provided block.The text was updated successfully, but these errors were encountered: