Skip to content

accurate fee estimation - #666

Open
Jumongweb wants to merge 1 commit into
FinChippay:mainfrom
Jumongweb:feat/accurate-fee-estimation
Open

accurate fee estimation#666
Jumongweb wants to merge 1 commit into
FinChippay:mainfrom
Jumongweb:feat/accurate-fee-estimation

Conversation

@Jumongweb

Copy link
Copy Markdown
Contributor

Closes #638

Summary

  • Replaces static fee multipliers with Horizon /fee_stats percentiles.
  • Simulates Soroban transactions using the existing RPC client.
  • Displays CPU instructions, read/write bytes, resource fee, base-fee range, total XLM, and stroops.
  • Adds a conservative fallback with a visible warning when simulation is unavailable.
  • Re-estimates whenever transaction inputs change.
  • Preserves the existing FeeEstimator callback contract.
  • Adds unit and component coverage for fee calculation, rendering, fallback behavior, and reactive updates.

Testing

  • Focused fee and rendering tests: 24 passed.
  • git diff --check: passed.
  • npm run type-check: currently blocked by pre-existing unrelated TypeScript errors across the repository.
  • Full npm test: currently blocked by pre-existing unrelated wallet, escrow, CSV, snapshot, and missing-module failures. The new and modified fee-related suites pass.

@github-actions github-actions Bot added the needs-review PR ready for Greptile AI code review label Aug 17, 2026
@github-actions

Copy link
Copy Markdown

🤖 Greptile AI Code Review

Greptile will automatically review this PR (9 file(s) changed).

Review gates:

  • ✅ CodeQL Security Scan
  • ✅ Custom rules (.greptile/config.json)
  • ✅ Architecture guidelines (.greptile/rules.md)

To manually trigger a re-review, comment @greptileai on this PR.
To skip review, add the skip-review label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review PR ready for Greptile AI code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue #69 — Accurate Fee & Resource Estimation via Soroban simulateTransaction

1 participant