Skip to content

Add rate to swap detail transaction#352

Merged
DRadmir merged 4 commits into
mainfrom
346-add-rate-to-swap-detail-transaction
May 21, 2026
Merged

Add rate to swap detail transaction#352
DRadmir merged 4 commits into
mainfrom
346-add-rate-to-swap-detail-transaction

Conversation

@DRadmir
Copy link
Copy Markdown
Contributor

@DRadmir DRadmir commented May 20, 2026

Screenshot 2026-05-20 at 2 24 52 PM Screenshot 2026-05-20 at 2 25 00 PM

Close: #346
Close: #292

DRadmir added 2 commits May 20, 2026 13:17
Solana NFT support added an `nft` parameter to the
TransactionLoadMetadata.solana case, but the SolanaSignerTests call
sites were not updated, breaking the SignerTests build.

Pass `nft: nil` for the three existing non-NFT transfer cases; the
signed transaction output is unchanged.
Compute and display swap rates (forward and reverse) in transaction details. Adds TransactionDetailsValue.Rate and a nullable rate property to the aggregate; TransactionDetailsAggregateImpl now computes the rate from swap metadata using AssetRateFormatter and includes it in the value groups. Android: wire up rate in TransactionDetailsScene and add TransactionRateProperty composable to show/toggle forward/reverse. iOS: add TransactionRateViewModel, update TransactionScene and TransactionSceneViewModel to present and switch rate direction. Includes unit tests for Android and iOS to validate rate formatting and nil handling.
@DRadmir DRadmir self-assigned this May 20, 2026
…detail-transaction

# Conflicts:
#	android/data/coordinators/src/main/kotlin/com/gemwallet/android/data/coordinators/transaction/GetTransactionDetailsImpl.kt
@DRadmir DRadmir merged commit 6565c1f into main May 21, 2026
4 of 5 checks passed
@DRadmir DRadmir deleted the 346-add-rate-to-swap-detail-transaction branch May 21, 2026 07:35
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.

Add rate to swap detail transaction Consolidate transaction details UI scene

2 participants