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

fix: estimate_ln_fee should be in sats #1236

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

storopoli
Copy link
Contributor

estimate_ln_fee should always return amount in sats not msats. This is not what happens when we get the amount from the Bolt11 invoice.

estimate_ln_fee should always return amount in sats not msats.
This is not what happens when we get the amount from the Bolt11 invoice.
@benthecarman benthecarman added the bug Something isn't working label Jul 9, 2024
@storopoli
Copy link
Contributor Author

Do you guys want me to add a test to this PR? So that this does not happen again on estimate_ln_fee?

@benthecarman
Copy link
Collaborator

Adding a test would be great, not sure how viable it is without a large refactor because it seems like it'd require a fedimint client

@storopoli
Copy link
Contributor Author

Adding a test would be great, not sure how viable it is without a large refactor because it seems like it'd require a fedimint client

Yeah you are right. It checks the internal lightning balance.

Well, I hope that the logic behind the fix is enough to convince.

@benthecarman benthecarman merged commit 51b3d67 into MutinyWallet:master Jul 9, 2024
9 checks passed
@storopoli storopoli deleted the fix-ln-fee-invoice branch July 9, 2024 13:34
@storopoli storopoli restored the fix-ln-fee-invoice branch July 9, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants