Updated on 2026-08-14

This commit is contained in:
Tangem 2026-01-23 22:13:53 +04:00
parent 39303971df
commit 910be11531
12 changed files with 38 additions and 29 deletions

View file

@ -460,6 +460,7 @@ internal class SendConfirmModel @Inject constructor(
val txUrl = getExplorerTransactionUrlUseCase(
txHash = txData.hash.orEmpty(),
networkId = cryptoCurrency.network.id,
currency = cryptoCurrency,
).getOrNull().orEmpty()
_uiState.update(SendConfirmSentStateTransformer(txData, txUrl))
}

View file

@ -335,6 +335,7 @@ internal class NFTSendConfirmModel @Inject constructor(
val txUrl = getExplorerTransactionUrlUseCase(
txHash = txData.hash.orEmpty(),
networkId = cryptoCurrency.network.id,
currency = cryptoCurrency,
).getOrElse { "" }
_uiState.update(NFTSendConfirmSentStateTransformer(txData, txUrl))
}

View file

@ -253,7 +253,8 @@ internal class StakingTransactionSender @AssistedInject constructor(
val txUrl = getExplorerTransactionUrlUseCase(
txHash = transactionHashes.last(),
networkId = cryptoCurrencyStatus.currency.network.id,
).getOrNull() ?: ""
currency = cryptoCurrencyStatus.currency,
).getOrNull().orEmpty()
balanceUpdater.updateAfterTransaction()
onSendSuccess(txUrl)

View file

@ -288,6 +288,7 @@ internal class SendWithSwapConfirmModel @Inject constructor(
val txUrl = getExplorerTransactionUrlUseCase(
txHash = txHash,
networkId = primaryCurrencyStatus.currency.network.id,
currency = primaryCurrencyStatus.currency,
).getOrNull().orEmpty()
sendSuccessAnalytics()
uiState.transformerUpdate(

View file

@ -781,6 +781,7 @@ internal class SwapModel @Inject constructor(
val url = getExplorerTransactionUrlUseCase(
txHash = swapTransactionState.txHash,
networkId = fromCurrency.currency.network.id,
currency = fromCurrency.currency,
).getOrElse {
Timber.i("tx hash explore not supported")
""

View file

@ -830,6 +830,7 @@ internal class TokenDetailsModel @Inject constructor(
getExplorerTransactionUrlUseCase(
txHash = txHash,
networkId = cryptoCurrency.network.id,
currency = cryptoCurrency,
).fold(
ifLeft = { Timber.e(it.toString()) },
ifRight = { router.openUrl(url = it) },

View file

@ -222,6 +222,7 @@ internal class TxHistoryModel @Inject constructor(
getExplorerTransactionUrlUseCase(
txHash = txHash,
networkId = params.currency.network.id,
currency = params.currency,
).fold(
ifLeft = { Timber.e(it.toString()) },
ifRight = { urlOpener.openUrl(url = it) },

View file

@ -322,11 +322,14 @@ internal class WalletContentClickIntentsImplementor @Inject constructor(
?.currency
?: return@launch
getExplorerTransactionUrlUseCase(txHash = txHash, networkId = currency.network.id)
.fold(
ifLeft = { Timber.e(it.toString()) },
ifRight = { router.openUrl(url = it) },
)
getExplorerTransactionUrlUseCase(
txHash = txHash,
networkId = currency.network.id,
currency = currency,
).fold(
ifLeft = { Timber.e(it.toString()) },
ifRight = { router.openUrl(url = it) },
)
}
}