diff --git a/blockchain/src/main/java/com/tangem/blockchain/common/Blockchain.kt b/blockchain/src/main/java/com/tangem/blockchain/common/Blockchain.kt index cc5d35535..639e2084a 100644 --- a/blockchain/src/main/java/com/tangem/blockchain/common/Blockchain.kt +++ b/blockchain/src/main/java/com/tangem/blockchain/common/Blockchain.kt @@ -15,6 +15,7 @@ import com.tangem.blockchain.blockchains.solana.SolanaAddressService import com.tangem.blockchain.blockchains.stellar.StellarAddressService import com.tangem.blockchain.blockchains.tezos.TezosAddressService import com.tangem.blockchain.blockchains.tron.TronAddressService +import com.tangem.blockchain.blockchains.vechain.VechainWalletManager import com.tangem.blockchain.blockchains.xrp.XrpAddressService import com.tangem.blockchain.common.address.Address import com.tangem.blockchain.common.address.AddressService @@ -430,9 +431,10 @@ enum class Blockchain( else -> false } - fun tokenTransactionFeePaidInNetworkCurrency(): Boolean = when (this) { - TerraV1 -> true - else -> false + fun feePaidCurrency(): FeePaidCurrency = when (this) { + Vechain, VechainTestnet -> FeePaidCurrency.Token(VechainWalletManager.VTHO_TOKEN) + TerraV1 -> FeePaidCurrency.SameCurrency + else -> FeePaidCurrency.Coin } companion object { diff --git a/blockchain/src/main/java/com/tangem/blockchain/common/FeePaidCurrency.kt b/blockchain/src/main/java/com/tangem/blockchain/common/FeePaidCurrency.kt new file mode 100644 index 000000000..fd6e5bdb7 --- /dev/null +++ b/blockchain/src/main/java/com/tangem/blockchain/common/FeePaidCurrency.kt @@ -0,0 +1,9 @@ +package com.tangem.blockchain.common + +import com.tangem.blockchain.common.Token as BlockchainToken + +sealed class FeePaidCurrency { + object Coin : FeePaidCurrency() + object SameCurrency : FeePaidCurrency() + data class Token(val token: BlockchainToken) : FeePaidCurrency() +}