ACINQ / phoenixd

https://phoenix.acinq.co/server
Apache License 2.0
117 stars 15 forks source link

Fix amount calculation for liquidity purchases in csv export #124

Closed pm47 closed 1 month ago

pm47 commented 1 month ago

Depending on the payment_type, fees for a liquidity purchase may be paid from the balance, or from future htlcs. In the former case, the fee amount must be deducted from the balance immediately.

A helper method InboundLiquidityOutgoingPayment.feePaidFromChannelBalance has been introduced for that purpose in https://github.com/ACINQ/lightning-kmp/pull/706 and we must use it.