Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-30 16:48:26 +03:00
parent acf110dbcc
commit 6910f74fd9
242 changed files with 866 additions and 732 deletions

View file

@ -101,12 +101,12 @@ class DefaultTxHistoryRepository(
userWalletId: UserWalletId,
currency: CryptoCurrency,
pageSize: Int,
refresh: Boolean,
shouldRefresh: Boolean,
): List<TxInfo> = withContext(dispatchers.io) {
try {
cacheRegistry.invokeOnExpire(
key = getTxHistoryPageKey(currency, userWalletId, Page.Initial),
skipCache = refresh,
skipCache = shouldRefresh,
block = { fetchFixedSizeTxHistoryItems(userWalletId, currency, pageSize) },
)
val txs = txHistoryItemsStore.getSyncOrNull(

View file

@ -55,7 +55,7 @@ internal class RefactoredTxHistoryRepository(
): PaginationWrapper<TxInfo> {
cacheRegistry.invokeOnExpire(
key = getTxHistoryPageKey(request.page, request.params),
skipCache = request.params.refresh,
skipCache = request.params.shouldRefresh,
block = { fetch(request, batchSize) },
)