From d5e709b83f928f59c953dd34f2512f5c1ac15b63 Mon Sep 17 00:00:00 2001 From: t-bast Date: Tue, 8 Oct 2024 10:15:48 +0200 Subject: [PATCH] Clarify when the `WithFeeCredit` liquidity purchase is used 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. --- src/commonMain/kotlin/fr/acinq/lightning/wire/LiquidityAds.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commonMain/kotlin/fr/acinq/lightning/wire/LiquidityAds.kt b/src/commonMain/kotlin/fr/acinq/lightning/wire/LiquidityAds.kt index 290ac3ba6..5aba765ab 100644 --- a/src/commonMain/kotlin/fr/acinq/lightning/wire/LiquidityAds.kt +++ b/src/commonMain/kotlin/fr/acinq/lightning/wire/LiquidityAds.kt @@ -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() }