Skip to content

feat(fee-estimator): add configurable feeMultiplier buffer for high-congestion ledgers (#907) - #1020

Merged
Jaydbrown merged 2 commits into
conduit-protocol:mainfrom
sunred-liu:feat/fee-buffer-multiplier-907
Oct 20, 2026
Merged

Jaydbrown merged 2 commits into
conduit-protocol:mainfrom
sunred-liu:feat/fee-buffer-multiplier-907

Conversation

@sunred-liu

@sunred-liu sunred-liu commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

closes #907

Implements a configurable feeMultiplier on FeeEstimatorOptions so estimated inclusion fees get a buffer (e.g. 1.2x) during high-congestion ledger periods, preventing out-bidding of urgent stream creations.

  • Defaults to 1 (no buffer); validated >= 1 in the constructor.
  • Applied via basis-point bigint math (consistent with the existing priority multipliers) so precision is preserved.
  • Added src/tests/fee-buffer-multiplier.test.ts covering default/no-op, 1.2x, buffer-on-priority, and validation.

All arithmetic verified against the existing dynamic-fee basis-point formula.

@Jaydbrown
Jaydbrown merged commit 549c8ce into conduit-protocol:main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

src/fee-estimator.ts: provide fee buffer multiplier configuration for high-congestion ledger periods

2 participants