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

fee calculation and check if min lovelace is sufficient #442

Open
1 task
jinglescode opened this issue Dec 12, 2024 · 0 comments
Open
1 task

fee calculation and check if min lovelace is sufficient #442

jinglescode opened this issue Dec 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jinglescode
Copy link
Member

Describe the feature you'd like

This has been requested multiple times.

In Eternl wallet, if you input a lovelace amount to send, and if your wallet has many tokens, it will calculate the required lovelace for all tokens and fees required.

in Mesh, we should have a function to calculate fees. This is useful for users to know how much lovelace is required in total. This is also useful as a tx validation.

Is your feature request related to a problem? Please describe.

Maybe users have 10 ADA, and decided to send 9 ADA. this tx will fail as lovelace is needed for the tokens, and min utxos.

Describe the solution you'd like

several functions to provide more checks for the given tx. calculating the fees required. This amount will become negative if the inputs do not have enough lovelace to cover fees and not enough to cover min utxo.

Additional context

No response

Would you be willing to implement it?

  • Yes, I will implement it.
@jinglescode jinglescode added the enhancement New feature or request label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant