Updated on 2026-08-14
This commit is contained in:
parent
2a2e0b3323
commit
f79fbcb530
4 changed files with 47 additions and 5 deletions
|
|
@ -6,6 +6,7 @@ import com.tangem.core.analytics.api.AnalyticsEventHandler
|
|||
import com.tangem.core.deeplink.DeepLink
|
||||
import com.tangem.core.deeplink.DeepLinksRegistry
|
||||
import com.tangem.core.deeplink.global.BuyCurrencyDeepLink
|
||||
import com.tangem.core.deeplink.global.ReferralDeepLink
|
||||
import com.tangem.core.deeplink.global.SellCurrencyDeepLink
|
||||
import com.tangem.domain.tokens.GetCryptoCurrencyUseCase
|
||||
import com.tangem.domain.tokens.model.analytics.TokenScreenAnalyticsEvent
|
||||
|
|
@ -54,6 +55,7 @@ internal class WalletDeepLinksHandler @Inject constructor(
|
|||
)
|
||||
|
||||
return buildList {
|
||||
addReferralDeepLink(userWallet.walletId)
|
||||
add(sellCurrencyDeepLink)
|
||||
if (onrampFeatureToggles.isFeatureEnabled || !userWallet.isMultiCurrency) {
|
||||
add(
|
||||
|
|
@ -95,4 +97,16 @@ internal class WalletDeepLinksHandler @Inject constructor(
|
|||
analyticsEventHandler.send(TokenScreenAnalyticsEvent.Bought(cryptoCurrency.symbol))
|
||||
}
|
||||
}
|
||||
|
||||
private fun MutableList<DeepLink>.addReferralDeepLink(userWalletId: UserWalletId) {
|
||||
add(
|
||||
ReferralDeepLink(
|
||||
onReceive = {
|
||||
router.push(
|
||||
AppRoute.ReferralProgram(userWalletId = userWalletId),
|
||||
)
|
||||
},
|
||||
),
|
||||
)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue