Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-16 17:05:19 +03:00
parent df9318faef
commit c1b426ef9f
9 changed files with 75 additions and 41 deletions

View file

@ -220,13 +220,16 @@ sealed class AppRoute(val path: String) : Route {
data class Swap(
val currency: CryptoCurrency,
val userWalletId: UserWalletId,
) : AppRoute(path = "/swap/${currency.id.value}/${userWalletId.stringValue}"), RouteBundleParams {
val isInitialReverseOrder: Boolean = false,
) : AppRoute(path = "/swap/${currency.id.value}/${userWalletId.stringValue}/$isInitialReverseOrder"),
RouteBundleParams {
override fun getBundle(): Bundle = bundle(serializer())
companion object {
const val CURRENCY_BUNDLE_KEY = "currency"
const val USER_WALLET_ID_KEY = "userWalletId"
const val IS_INITIAL_REVERSE_ORDER = "isInitialReverseOrder"
}
}