Updated on 2026-08-14

This commit is contained in:
Tangem 2024-08-30 15:15:07 +03:00
parent 248dab7303
commit 653cd7e72c
10 changed files with 121 additions and 238 deletions

View file

@ -219,12 +219,14 @@ sealed class AppRoute(val path: String) : Route {
@Serializable
data class Swap(
val currency: CryptoCurrency,
) : AppRoute(path = "/swap/${currency.id.value}"), RouteBundleParams {
val userWalletId: UserWalletId,
) : AppRoute(path = "/swap/${currency.id.value}/${userWalletId.stringValue}"), RouteBundleParams {
override fun getBundle(): Bundle = bundle(serializer())
companion object {
const val CURRENCY_BUNDLE_KEY = "currency"
const val USER_WALLET_ID_KEY = "userWalletId"
}
}