Closed pm47 closed 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.
payment_type
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.
InboundLiquidityOutgoingPayment.feePaidFromChannelBalance
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.