Skip to content

Commit

Permalink
Clarify when the WithFeeCredit liquidity purchase is used (#708)
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 authored Oct 8, 2024
1 parent b38b0e0 commit 9bfdfe6
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 9bfdfe6

Please sign in to comment.