Updated on 2026-08-14

This commit is contained in:
Tangem 2022-04-22 14:22:05 +04:00
parent dbc5600e9a
commit 3bf67bade6

View file

@ -397,7 +397,10 @@ sealed interface Currency {
}
fun isCustomCurrency(derivationStyle: DerivationStyle?): Boolean {
if (this is Token && this.token.id == null) return true
if (derivationPath == null || derivationStyle == null) return false
return derivationPath != blockchain.derivationPath(derivationStyle)?.rawPath
}