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

fix: estimate_ln_fee should be in sats #1236

Merged
merged 1 commit into from
Jul 9, 2024
Merged

fix: estimate_ln_fee should be in sats #1236

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 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