Updated on 2026-08-14

This commit is contained in:
Tangem 2025-01-13 20:26:53 +05:00
parent 86a853c15f
commit 4ff11f2040

View file

@ -79,10 +79,17 @@ internal class OnrampSuccessComponentModel @Inject constructor(
} }
private suspend fun loadTransactionStatus(transaction: OnrampTransaction) { private suspend fun loadTransactionStatus(transaction: OnrampTransaction) {
val cryptoCurrency = getCryptoCurrencyUseCase( val multiCryptoCurrency = getCryptoCurrencyUseCase(
transaction.userWalletId, transaction.userWalletId,
transaction.toCurrencyId, transaction.toCurrencyId,
).getOrElse { error("Crypto currency not found") } ).getOrNull()
val cryptoCurrency = multiCryptoCurrency
?: getCryptoCurrencyUseCase.invoke(transaction.userWalletId).getOrElse {
Timber.e("Crypto currency not found")
showErrorAlert(OnrampError.DomainError(null))
return
}
getOnrampStatusUseCase(txId = transaction.txId) getOnrampStatusUseCase(txId = transaction.txId)
.fold( .fold(