Updated on 2026-08-14
This commit is contained in:
parent
a88572a019
commit
22ba475aae
18 changed files with 80 additions and 17 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue