Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-09 16:04:17 +03:00
parent 8962f8d333
commit 965a6f8e46

View file

@ -65,8 +65,8 @@ internal fun getCoinIconUrl(blockchain: Blockchain): String? {
internal fun List<UserTokensResponse.Token>.hasCoinForToken(token: CryptoCurrency.Token): Boolean {
return any {
val blockchain = getBlockchain(networkId = token.network.id)
it.id == blockchain.toCoinId()
val tokenDerivation = token.network.derivationPath.value
it.id == blockchain.toCoinId() && it.derivationPath == tokenDerivation
}
}