Updated on 2026-08-14
This commit is contained in:
parent
b316ef4d87
commit
370690a359
42 changed files with 486 additions and 35 deletions
|
|
@ -532,6 +532,7 @@ internal class TokenDetailsModel @Inject constructor(
|
|||
token = cryptoCurrency.symbol,
|
||||
blockchain = cryptoCurrency.network.name,
|
||||
status = unavailabilityReason.toReasonAnalyticsText(),
|
||||
derivationIndex = getAccountIndexOrNull(),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
@ -557,6 +558,7 @@ internal class TokenDetailsModel @Inject constructor(
|
|||
token = cryptoCurrency.symbol,
|
||||
blockchain = cryptoCurrency.network.name,
|
||||
status = null,
|
||||
derivationIndex = getAccountIndexOrNull(),
|
||||
),
|
||||
)
|
||||
router.openTokenDetails(userWalletId = userWalletId, currency = cryptoCurrency)
|
||||
|
|
@ -578,6 +580,7 @@ internal class TokenDetailsModel @Inject constructor(
|
|||
token = cryptoCurrency.symbol,
|
||||
blockchain = cryptoCurrency.network.name,
|
||||
status = unavailabilityReason.toReasonAnalyticsText(),
|
||||
derivationIndex = getAccountIndexOrNull(),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
@ -698,6 +701,7 @@ internal class TokenDetailsModel @Inject constructor(
|
|||
token = cryptoCurrency.symbol,
|
||||
blockchain = cryptoCurrency.network.name,
|
||||
status = unavailabilityReason.toReasonAnalyticsText(),
|
||||
derivationIndex = getAccountIndexOrNull(),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
@ -766,6 +770,12 @@ internal class TokenDetailsModel @Inject constructor(
|
|||
showErrorIfDemoModeOrElse(action = ::openExplorer)
|
||||
}
|
||||
|
||||
private fun getAccountIndexOrNull(): Int? {
|
||||
val account = account
|
||||
val isNotMainAccount = account != null && !account.isMainAccount
|
||||
return if (isNotMainAccount) account.derivationIndex.value else null
|
||||
}
|
||||
|
||||
private fun openExplorer() {
|
||||
val currencyStatus = cryptoCurrencyStatus ?: return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue