Skip to content

feat(transaction): add FeeCalculator for fee breakdown and comparison - #226

Merged
Just-Bamford merged 2 commits into
Sorokit:mainfrom
oraimoitel:feat/fee-calculator-201
Jul 29, 2026
Merged

feat(transaction): add FeeCalculator for fee breakdown and comparison#226
Just-Bamford merged 2 commits into
Sorokit:mainfrom
oraimoitel:feat/fee-calculator-201

Conversation

@oraimoitel

Copy link
Copy Markdown
Contributor

Implement FeeCalculator class that wraps the existing estimateFee function to provide structured fee breakdowns, comparisons, and surge detection.

  • FeeCalculator class with computeFromEstimate and listener support
  • FeeBreakdown with base fee, resource fee, total fee components
  • Tooltips explaining each fee component
  • Fee comparison for different transaction types
  • Surge detection alerts
  • Edge case handling (zero fees, network errors)
  • Comprehensive test coverage (19 tests)

Closes #201

Implement FeeCalculator class that wraps the existing estimateFee function
to provide structured fee breakdowns, comparisons, and surge detection.

- FeeCalculator class with computeFromEstimate and listener support
- FeeBreakdown with base fee, resource fee, total fee components
- Tooltips explaining each fee component
- Fee comparison for different transaction types
- Surge detection alerts
- Edge case handling (zero fees, network errors)
- Comprehensive test coverage (19 tests)

Closes Sorokit#201
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@oraimoitel 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

@Just-Bamford
Just-Bamford merged commit fe2e1d8 into Sorokit:main Jul 29, 2026
2 of 5 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 transaction fee calculator UI

2 participants