Updated on 2026-08-14
This commit is contained in:
parent
b750588ef9
commit
f1797da7ed
6 changed files with 34 additions and 5 deletions
|
|
@ -189,7 +189,10 @@ internal class TokenDetailsViewModel @Inject constructor(
|
|||
deepLinksRegistry.registerWithViewModel(
|
||||
viewModel = this,
|
||||
deepLinks = listOf(
|
||||
BuyCurrencyDeepLink(::onBuyCurrencyDeepLink),
|
||||
BuyCurrencyDeepLink(
|
||||
isOnrampFeatureEnabled = onrampFeatureToggles.isFeatureEnabled,
|
||||
onReceive = ::onBuyCurrencyDeepLink,
|
||||
),
|
||||
),
|
||||
)
|
||||
userWallet = getUserWalletUseCase(userWalletId).getOrNull() ?: error("UserWallet not found")
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ internal class WalletDeepLinksHandler @Inject constructor(
|
|||
if (onrampFeatureToggles.isFeatureEnabled || !userWallet.isMultiCurrency) {
|
||||
add(
|
||||
BuyCurrencyDeepLink(
|
||||
isOnrampFeatureEnabled = onrampFeatureToggles.isFeatureEnabled,
|
||||
onReceive = { txId ->
|
||||
scope.launch { onBuyCurrencyDeepLink(txId, userWallet) }
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue