Updated on 2026-08-14
This commit is contained in:
parent
27303c0096
commit
be6f0efeec
4 changed files with 28 additions and 13 deletions
|
|
@ -303,7 +303,7 @@ fun Blockchain.toCoinId(): String {
|
|||
Blockchain.EthereumClassic, Blockchain.EthereumClassicTestnet -> "ethereum-classic"
|
||||
Blockchain.Stellar, Blockchain.StellarTestnet -> "stellar"
|
||||
Blockchain.Cardano -> "cardano"
|
||||
Blockchain.Polygon, Blockchain.PolygonTestnet -> "polygon-ecosystem-token"
|
||||
Blockchain.Polygon, Blockchain.PolygonTestnet -> NEW_POLYGON_NAME
|
||||
Blockchain.Arbitrum, Blockchain.ArbitrumTestnet -> "arbitrum-one"
|
||||
Blockchain.Avalanche, Blockchain.AvalancheTestnet -> "avalanche-2"
|
||||
Blockchain.Solana, Blockchain.SolanaTestnet -> "solana"
|
||||
|
|
@ -387,8 +387,8 @@ 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"
|
||||
fun Blockchain.toMigratedCoinId(): String = when (this) {
|
||||
Blockchain.Polygon, Blockchain.PolygonTestnet -> NEW_POLYGON_NAME
|
||||
else -> toCoinId()
|
||||
}
|
||||
|
||||
|
|
@ -422,5 +422,8 @@ fun Blockchain.minimalAmount(): BigDecimal {
|
|||
return BigDecimal.ONE.movePointLeft(decimals())
|
||||
}
|
||||
|
||||
const val OLD_POLYGON_NAME = "matic-network"
|
||||
const val NEW_POLYGON_NAME = "polygon-ecosystem-token"
|
||||
|
||||
private const val NODL = "NODL"
|
||||
private const val NODL_AMOUNT_TO_CREATE_ACCOUNT = 1.5
|
||||
Loading…
Add table
Add a link
Reference in a new issue