Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-06 12:47:07 +03:00
parent 93bab15d0c
commit e1c58bed0e
15 changed files with 467 additions and 32 deletions

View file

@ -108,6 +108,10 @@ internal class DefaultTokenDetailsComponent @AssistedInject constructor(
userWalletId = params.userWalletId,
currency = params.currency,
onDismiss = model.txDetailsNavigation::dismiss,
onOpenTokenDetails = { currency ->
model.txDetailsNavigation.dismiss()
model.openTokenDetails(currency)
},
),
)
},

View file

@ -663,6 +663,11 @@ internal class TokenDetailsModel @Inject constructor(
router.openTokenDetails(userWalletId = userWalletId, currency = cryptoCurrency)
}
/** Opens the given currency's Token Details on top of this screen (e.g. the refunded token from the tx details sheet). */
fun openTokenDetails(currency: CryptoCurrency) {
router.openTokenDetails(userWalletId = userWalletId, currency = currency)
}
override fun onStakeBannerClick() {
analyticsEventsHandler.send(TokenScreenAnalyticsEvent.StakingClicked(cryptoCurrency.symbol))
openStaking()