Skip to content

Commit

Permalink
saturating sub payment fee
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Jul 12, 2024
1 parent abe97c7 commit 0f25332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/sdk-core/src/greenlight/node_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2174,7 +2174,7 @@ impl TryFrom<cln::ListpaysPays> for Payment {
.as_ref()
.map_or(0, |i| i.amount_msat.unwrap_or_default()),
},
fee_msat: payment_amount_sent - payment_amount,
fee_msat: payment_amount_sent.saturating_sub(payment_amount),
status,
error: None,
description: ln_invoice.map(|i| i.description).unwrap_or_default(),
Expand Down

0 comments on commit 0f25332

Please sign in to comment.