Skip to content

Commit

Permalink
Merge pull request #1051 from getlipa/fix/swap-to-lightning-total-fees
Browse files Browse the repository at this point in the history
Fix total fees in `get_channel_close_resolving_fees`
  • Loading branch information
danielgranhao authored May 6, 2024
2 parents 5f68dfc + f366464 commit 95a578f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1925,7 +1925,9 @@ impl LightningNode {
swap_fee: swap_fee.sats.as_sats().to_amount_up(&rate),
onchain_fee: prepared_sweep.clone().onchain_fee_sat,
channel_opening_fee: lsp_fees.lsp_fee.clone(),
total_fees: (swap_fee.sats + prepared_sweep.amount.sats + lsp_fees.lsp_fee.sats)
total_fees: (swap_fee.sats
+ prepared_sweep.onchain_fee_sat.sats
+ lsp_fees.lsp_fee.sats)
.as_sats()
.to_amount_up(&rate),
lsp_fee_params: lsp_fees.lsp_fee_params,
Expand Down

0 comments on commit 95a578f

Please sign in to comment.