Updated on 2026-08-14
This commit is contained in:
parent
33553ce4b2
commit
42af9271ad
1 changed files with 6 additions and 0 deletions
|
|
@ -41,6 +41,11 @@ internal class DefaultCustomTokensRepository(
|
|||
private val networkFactory: NetworkFactory,
|
||||
) : CustomTokensRepository {
|
||||
|
||||
private val excludedBlockchainsForCustom = setOf(
|
||||
Blockchain.Quai,
|
||||
Blockchain.QuaiTestnet,
|
||||
)
|
||||
|
||||
private val cryptoCurrencyFactory = CryptoCurrencyFactory(excludedBlockchains)
|
||||
private val userTokensResponseFactory = UserTokensResponseFactory()
|
||||
private val tokenAddressConverter = TokenAddressesConverter()
|
||||
|
|
@ -268,6 +273,7 @@ internal class DefaultCustomTokensRepository(
|
|||
val scanResponse = userWallet.scanResponse
|
||||
|
||||
Blockchain.entries
|
||||
.filter { it !in excludedBlockchainsForCustom }
|
||||
.mapNotNull { blockchain ->
|
||||
val canHandleBlockchain = scanResponse.card.canHandleBlockchain(
|
||||
blockchain,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue