Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenience functions for calculating the CCDAmount from Energy #272

Closed
MilkywayPirate opened this issue Oct 3, 2023 · 0 comments · Fixed by #314
Closed

Convenience functions for calculating the CCDAmount from Energy #272

MilkywayPirate opened this issue Oct 3, 2023 · 0 comments · Fixed by #314
Assignees
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.

Comments

@MilkywayPirate
Copy link
Contributor

The SDK could expose a couple of convenience functions for calculating the CCDAmount from Energy 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 and microCCDPerEnergy from the chain parameters for a provided block.

@MilkywayPirate MilkywayPirate added [Prio] Low Should be fixed if time permits but can be postponed. [Size] Small [Type] Task An additional feature or improvement. good first issue Good for newcomers labels Oct 3, 2023
@magnusbechwind magnusbechwind linked a pull request Feb 14, 2024 that will close this issue
5 tasks
magnusbechwind added a commit that referenced this issue Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants