Skip to content

Commit

Permalink
Clarify when the WithFeeCredit liquidity purchase is used
Browse files Browse the repository at this point in the history
Whenever we consume some of our fee credit for a liquidity purchase, we
will use a `WithFeeCredit` purchase, even if we cannot pay the entire
fee with our fee credit.
  • Loading branch information
t-bast committed Oct 8, 2024
1 parent b38b0e0 commit d5e709b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ object LiquidityAds {
abstract val paymentDetails: PaymentDetails

data class Standard(override val amount: Satoshi, override val fees: Fees, override val paymentDetails: PaymentDetails) : Purchase()
/** The liquidity purchase was paid (partially or entirely) using [fr.acinq.lightning.Feature.FundingFeeCredit]. */
data class WithFeeCredit(override val amount: Satoshi, override val fees: Fees, val feeCreditUsed: MilliSatoshi, override val paymentDetails: PaymentDetails) : Purchase()
}

Expand Down

0 comments on commit d5e709b

Please sign in to comment.