Skip to content

Feat/fee estimation service#468

Merged
llinsss merged 2 commits into
DogStark:mainfrom
Valreb001:feat/fee-estimation-service
May 28, 2026
Merged

Feat/fee estimation service#468
llinsss merged 2 commits into
DogStark:mainfrom
Valreb001:feat/fee-estimation-service

Conversation

@Valreb001
Copy link
Copy Markdown

Closes #400

What was re-implemented in feeEstimation.ts:

  • Horizon fee_stats endpoint — queries real p10/p50/p90 fee percentiles instead of hardcoded
    BASE_FEE
  • TTL cache — 10-second cache to avoid hammering the API on every render
  • Surge pricing — applies a 1.5× multiplier when ledger capacity usage exceeds 80%
  • Fee tiers — min (p10), recommended (p50), max (p90), all in XLM
  • Graceful fallback — returns safe BASE_FEE-based values if Horizon is unreachable
  • Fully typed with TypeScript, singleton export, and a clearCache() method for testing

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@Valreb001 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@llinsss llinsss merged commit f4f7a12 into DogStark:main May 28, 2026
4 of 9 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.

Implement Fee Estimation Service

2 participants