Updated on 2026-08-14

This commit is contained in:
Tangem 2024-10-08 15:40:17 +05:00
parent a88572a019
commit 22ba475aae
18 changed files with 80 additions and 17 deletions

View file

@ -366,6 +366,15 @@ fun Blockchain.toCoinId(): String {
}
}
/**
* New CoinId to existing coin "id" field.
* To support both old and new coin id.
*/
fun Blockchain.toMigratedCointId(): String = when (this) {
Blockchain.Polygon, Blockchain.PolygonTestnet -> "polygon-ecosystem-token"
else -> toCoinId()
}
fun Blockchain.isSupportedInApp(): Boolean {
return !excludedBlockchains.contains(this)
}