diff --git a/BTCPayServer/Services/PayjoinClient.cs b/BTCPayServer/Services/PayjoinClient.cs index b9d28c283..6a7a5f842 100644 --- a/BTCPayServer/Services/PayjoinClient.cs +++ b/BTCPayServer/Services/PayjoinClient.cs @@ -109,10 +109,11 @@ namespace BTCPayServer.Services if (!signedPSBT.TryGetEstimatedFeeRate(out var originalFeeRate)) throw new ArgumentException("signedPSBT should have utxo information", nameof(signedPSBT)); var originalFee = signedPSBT.GetFee(); - optionalParameters.MaxAdditionalFeeContribution = MaxFeeBumpContribution is null ? - // By default, we want to keep same fee rate and a single additional input - originalFeeRate.GetFee(GetVirtualSize(inputScriptType)) : - MaxFeeBumpContribution; + if (changeOutput is PSBTOutput) + optionalParameters.MaxAdditionalFeeContribution = MaxFeeBumpContribution is null ? + // By default, we want to keep same fee rate and a single additional input + originalFeeRate.GetFee(GetVirtualSize(inputScriptType)) : + MaxFeeBumpContribution; if (MinimumFeeRate is FeeRate v) optionalParameters.MinFeeRate = v;