Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-29 15:44:09 +05:00
parent 645f6b1993
commit e42c887138
8 changed files with 101 additions and 7 deletions

View file

@ -62,6 +62,23 @@ internal class DefaultNetworksRepository(
}
}
override suspend fun getNetworkAddresses(
userWalletId: UserWalletId,
network: Network.RawID,
): List<CryptoCurrencyAddress> {
return runCatching { cardCryptoCurrencyFactory.createByRawId(userWalletId = userWalletId, network = network) }
.getOrElse {
Timber.e(it, "Unable to create wallet currencies")
return emptyList()
}
.map { currency ->
CryptoCurrencyAddress(
cryptoCurrency = currency,
address = getDefaultAddress(userWalletId, currency.network),
)
}
}
private suspend fun fetchPendingTransactions(
userWalletId: UserWalletId,
network: Network,