Updated on 2026-08-14
This commit is contained in:
parent
0bf2decb83
commit
36e7f2d07f
23 changed files with 212 additions and 70 deletions
|
|
@ -6,6 +6,7 @@ import com.tangem.blockchainsdk.utils.fromNetworkId
|
|||
import com.tangem.data.common.currency.CryptoCurrencyFactory
|
||||
import com.tangem.data.common.currency.getNetwork
|
||||
import com.tangem.datasource.api.tangemTech.models.HotCryptoResponse
|
||||
import com.tangem.domain.models.StatusSource
|
||||
import com.tangem.domain.models.scan.ScanResponse
|
||||
import com.tangem.domain.onramp.model.HotCryptoCurrency
|
||||
import com.tangem.domain.tokens.model.CryptoCurrency
|
||||
|
|
@ -94,7 +95,7 @@ internal class HotCryptoCurrencyConverter(
|
|||
rawCurrencyId = rawCurrencyId,
|
||||
fiatRate = fiatRate,
|
||||
priceChange = priceChange.movePointLeft(2),
|
||||
isCached = false, // It doesn't matter
|
||||
source = StatusSource.ACTUAL, // It doesn't matter
|
||||
)
|
||||
} else {
|
||||
Quote.Empty(rawCurrencyId)
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@ internal class DefaultQuotesRepository(
|
|||
},
|
||||
onError = { error ->
|
||||
cacheRegistry.invalidate(rawCurrenciesIds.map { getQuoteCacheKey(it) })
|
||||
quotesStore.storeEmptyQuotes(currenciesIds = rawCurrenciesIds)
|
||||
|
||||
throw error
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.data.tokens.utils
|
||||
|
||||
import com.tangem.domain.models.StatusSource
|
||||
import com.tangem.domain.tokens.model.*
|
||||
import com.tangem.domain.txhistory.models.TxHistoryItem
|
||||
import com.tangem.domain.walletmanager.model.Address
|
||||
|
|
@ -26,7 +27,7 @@ internal class NetworkStatusFactory {
|
|||
address = getNetworkAddress(result.selectedAddress, result.addresses),
|
||||
amountToCreateAccount = result.amountToCreateAccount,
|
||||
errorMessage = result.errorMessage,
|
||||
isCached = false,
|
||||
source = StatusSource.ACTUAL,
|
||||
)
|
||||
is UpdateWalletManagerResult.Verified -> NetworkStatus.Verified(
|
||||
address = getNetworkAddress(result.selectedAddress, result.addresses),
|
||||
|
|
@ -35,7 +36,7 @@ internal class NetworkStatusFactory {
|
|||
transactions = result.currentTransactions,
|
||||
currencies = currencies,
|
||||
),
|
||||
isCached = false,
|
||||
source = StatusSource.ACTUAL,
|
||||
)
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue