Updated on 2026-08-14
This commit is contained in:
parent
f1eb31f5f4
commit
da6ee825ab
13 changed files with 208 additions and 38 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue