Updated on 2026-08-14

This commit is contained in:
Tangem 2024-12-11 12:57:25 +05:00
parent 841b332d88
commit 82d85edb86
9 changed files with 33 additions and 12 deletions

View file

@ -114,6 +114,17 @@ object BlockchainUtils {
return l2BlockchainsList.contains(blockchain)
}
/**
* Blockchains not affecting total balance counting on errors
*/
fun isIncludeToBalanceOnError(blockchainId: String): Boolean {
val blockchain = Blockchain.fromId(blockchainId)
return when (blockchain) {
Blockchain.Binance, Blockchain.BinanceTestnet -> true
else -> false
}
}
private fun getNetworkStandardName(blockchain: Blockchain): String {
return when (blockchain) {
Blockchain.Ethereum, Blockchain.EthereumTestnet -> "ERC20"