Updated on 2026-08-14
This commit is contained in:
parent
e72c2c87bc
commit
6dbd7bd861
58 changed files with 207 additions and 206 deletions
|
|
@ -1,18 +0,0 @@
|
|||
package com.tangem.tap.common.extensions
|
||||
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
import com.tangem.common.extensions.remove
|
||||
|
||||
fun Blockchain.getNetworkStandardName(): String {
|
||||
return when (this) {
|
||||
Blockchain.Ethereum, Blockchain.EthereumTestnet -> "ERC20"
|
||||
Blockchain.BSC, Blockchain.BSCTestnet -> "BEP20"
|
||||
Blockchain.Binance, Blockchain.BinanceTestnet -> "BEP2"
|
||||
Blockchain.Tron, Blockchain.TronTestnet -> "TRC20"
|
||||
Blockchain.TON -> "TON"
|
||||
else -> ""
|
||||
}
|
||||
}
|
||||
|
||||
val Blockchain.networkNameWithoutTestnet
|
||||
get() = this.getNetworkName().remove(" Testnet")
|
||||
Loading…
Add table
Add a link
Reference in a new issue