Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/fee_estimator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ pub(crate) fn apply_post_estimation_adjustments(
/// The most we are willing to pay for a channel funding transaction: `1.5x` our funding feerate
/// estimate. Used as the `max_feerate` ceiling for splices and their RBF fee bumps.
pub(crate) fn max_funding_feerate(estimate: FeeRate) -> FeeRate {
FeeRate::from_sat_per_kwu(estimate.to_sat_per_kwu() * 3 / 2)
let sats_per_kwu = estimate.to_sat_per_kwu();
FeeRate::from_sat_per_kwu(sats_per_kwu.saturating_add(sats_per_kwu / 2))
Comment thread
elnafateh marked this conversation as resolved.
Resolved
}

/// Picks the `(target, max)` feerates for replacing a pending splice's in-flight funding
Expand Down
Loading