Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

fix: estimate_ln_fee should be in sats#1236

Merged
benthecarman merged 1 commit into
MutinyWallet:masterfrom
storopoli:fix-ln-fee-invoice
Jul 9, 2024
Merged

fix: estimate_ln_fee should be in sats#1236
benthecarman merged 1 commit into
MutinyWallet:masterfrom
storopoli:fix-ln-fee-invoice

Conversation

@storopoli

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants