Skip to content

Display bank fee breakdown (fixed + percent) separately#1008

Merged
TaprootFreak merged 2 commits intodevelopfrom
feature/display-bank-fee-breakdown
Mar 17, 2026
Merged

Display bank fee breakdown (fixed + percent) separately#1008
TaprootFreak merged 2 commits intodevelopfrom
feature/display-bank-fee-breakdown

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Display bankFixed and bankPercent as separate lines in fee breakdown
  • Falls back to combined bank fee when breakdown is not available (backwards compatible)
  • Adds local type extension for Fees interface (remove after @dfx.swiss/react is updated)

Related PRs

Changes

  • exchange-rate.tsx — split "Bank fee" into "Bank fee (fixed)" and "Bank fee (percent)"
  • transaction.screen.tsx — same split for transaction history view
  • typings/dfx-react.d.ts — temporary type extension

Test plan

  • Buy quote with EUR: verify two separate bank fee lines shown
  • Buy quote with CHF: verify no bank percent line (only fixed)
  • Transaction history: verify fallback to single "Bank fee" for old transactions
  • Swap quote: verify no bank fee lines shown

- Show bankFixed and bankPercent as separate lines when available
- Fall back to combined bank fee for backwards compatibility
- Add local type extension for Fees interface until package is updated
@TaprootFreak TaprootFreak marked this pull request as ready for review March 17, 2026 12:56
@TaprootFreak TaprootFreak merged commit 1a1af76 into develop Mar 17, 2026
6 checks passed
@TaprootFreak TaprootFreak deleted the feature/display-bank-fee-breakdown branch March 17, 2026 12:56
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.

1 participant