Updated on 2026-08-14

This commit is contained in:
Tangem 2024-11-18 18:04:57 +05:00
parent f1eb31f5f4
commit da6ee825ab
13 changed files with 208 additions and 38 deletions

View file

@ -47,12 +47,12 @@ internal class DefaultOnrampTransactionRepository(
override fun getTransactions(
userWalletId: UserWalletId,
toCryptoCurrency: CryptoCurrency.ID,
cryptoCurrencyId: CryptoCurrency.ID,
): Flow<List<OnrampTransaction>> = appPreferencesStore
.getObjectSet<OnrampTransaction>(PreferencesKeys.ONRAMP_TRANSACTIONS_STATUSES_KEY)
.map { transactions ->
transactions.filter {
it.userWalletId == userWalletId && it.toCurrency.id == toCryptoCurrency
it.userWalletId == userWalletId && it.toCurrencyId == cryptoCurrencyId.value
}
}