Updated on 2026-08-14
This commit is contained in:
parent
4d0a8c6ab0
commit
4f8ee89101
3 changed files with 16 additions and 11 deletions
|
|
@ -16,7 +16,7 @@ class GetNFTNetworksUseCase(
|
|||
.map { cryptoCurrencies ->
|
||||
val availableNetworks = cryptoCurrencies
|
||||
.map { cryptoCurrency -> cryptoCurrency.network }
|
||||
.filter { nftRepository.isNFTSupported(it) }
|
||||
.filter { nftRepository.isNFTSupported(userWalletId, it) }
|
||||
.sortedBy { it.name }
|
||||
|
||||
val unavailableNetworks = nftRepository
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ interface NFTRepository {
|
|||
|
||||
suspend fun refreshAll(userWalletId: UserWalletId, networks: List<Network>)
|
||||
|
||||
suspend fun isNFTSupported(network: Network): Boolean
|
||||
suspend fun isNFTSupported(userWalletId: UserWalletId, network: Network): Boolean
|
||||
|
||||
suspend fun getNFTSupportedNetworks(userWalletId: UserWalletId): List<Network>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue