Skip to content

Surface FeeEstimator fallback staleness - #234

Merged
Jaydbrown merged 2 commits into
conduit-protocol:mainfrom
silentgeckoaudit3801:fix/fee-estimator-stale-signal-clean-192
Jul 29, 2026
Merged

Surface FeeEstimator fallback staleness#234
Jaydbrown merged 2 commits into
conduit-protocol:mainfrom
silentgeckoaudit3801:fix/fee-estimator-stale-signal-clean-192

Conversation

@silentgeckoaudit3801

Copy link
Copy Markdown
Contributor

Summary

  • add an optional onError callback to FeeEstimator.estimateFee() fallback paths
  • expose lastSuccessfulFetchAt, lastError, and isStale so consumers can detect stale fallback estimates
  • add regression coverage for network errors, invalid responses, successful recovery, and public option export

Fixes #192.

Validation

  • git diff --check
  • rg -n "FeeEstimateOptions|onError|lastSuccessfulFetchAt|lastError|isStale|temporary outage|Invalid network fee response" src/fee-estimator.ts src/tests/fee-estimator.test.ts src/index.ts
  • Not run: npm test (node_modules is absent, and I avoided installing dependencies in this environment)

@Jaydbrown
Jaydbrown force-pushed the fix/fee-estimator-stale-signal-clean-192 branch from c0e5886 to 11b7197 Compare July 29, 2026 10:39
@Jaydbrown
Jaydbrown merged commit e647088 into conduit-protocol:main Jul 29, 2026
2 of 3 checks passed
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.

Bug: FeeEstimator.estimateFee silently swallows every fetch error identically

3 participants