|
|
@@ -731,7 +731,8 @@ impl MintPayment for CdkLdkNode {
|
|
|
|
|
|
let total_spent = payment_details
|
|
|
.amount_msat
|
|
|
- .ok_or(Error::CouldNotGetAmountSpent)?;
|
|
|
+ .ok_or(Error::CouldNotGetAmountSpent)?
|
|
|
+ + payment_details.fee_paid_msat.unwrap_or_default();
|
|
|
|
|
|
let total_spent = to_unit(total_spent, &CurrencyUnit::Msat, unit)?;
|
|
|
|
|
|
@@ -805,7 +806,8 @@ impl MintPayment for CdkLdkNode {
|
|
|
|
|
|
let total_spent = payment_details
|
|
|
.amount_msat
|
|
|
- .ok_or(Error::CouldNotGetAmountSpent)?;
|
|
|
+ .ok_or(Error::CouldNotGetAmountSpent)?
|
|
|
+ + payment_details.fee_paid_msat.unwrap_or_default();
|
|
|
|
|
|
let total_spent = to_unit(total_spent, &CurrencyUnit::Msat, unit)?;
|
|
|
|