Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-16 18:10:00 +04:00
parent 2e8d0bc03b
commit 298e7a5565
29 changed files with 687 additions and 43 deletions

View file

@ -205,13 +205,14 @@ sealed class AppRoute(val path: String) : Route {
@Serializable
data class Swap(
val userWalletId: UserWalletId,
val cryptoCurrency: CryptoCurrency? = null,
val fromCryptoCurrency: CryptoCurrency? = null,
val screenSource: String,
val currencyPosition: CurrencyPosition = CurrencyPosition.ANY,
val fromCurrencyPosition: CurrencyPosition = CurrencyPosition.ANY,
val tangemPayInput: TangemPayInput? = null,
val toCryptoCurrency: CryptoCurrency? = null,
) : AppRoute(
path = "/swap" +
"/${cryptoCurrency?.id?.value}" +
"/${fromCryptoCurrency?.id?.value}" +
"/${userWalletId.stringValue}",
) {
@Serializable

View file

@ -136,7 +136,7 @@ class TokenActionsHandler @AssistedInject constructor(
private fun onExchangeClick(cryptoCurrencyData: CryptoCurrencyData) {
router.push(
AppRoute.Swap(
cryptoCurrency = cryptoCurrencyData.status.currency,
fromCryptoCurrency = cryptoCurrencyData.status.currency,
userWalletId = cryptoCurrencyData.userWallet.walletId,
screenSource = AnalyticsParam.ScreensSources.Markets.value,
),