Skip to content

Commit

Permalink
Merge pull request #1236 from storopoli/fix-ln-fee-invoice
Browse files Browse the repository at this point in the history
fix: `estimate_ln_fee` should be in sats
  • Loading branch information
benthecarman authored Jul 9, 2024
2 parents 97fcfee + f37a25c commit 51b3d67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mutiny-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,9 @@ impl<S: MutinyStorage> MutinyWallet<S> {
log_trace!(self.logger, "calling estimate_ln_fee");

let amt = amt_sats
.or(inv.and_then(|i| i.amount_milli_satoshis()))
.or(inv
.and_then(|i| i.amount_milli_satoshis())
.map(|a| a / 1_000))
.ok_or(MutinyError::BadAmountError)?;

// check balances first
Expand Down

0 comments on commit 51b3d67

Please sign in to comment.