Updated on 2026-08-14
This commit is contained in:
parent
25ad725b4f
commit
360dfb21f3
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.tap.features.wallet.redux
|
||||
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
import com.tangem.blockchain.common.TransactionData
|
||||
import com.tangem.common.extensions.isZero
|
||||
import com.tangem.domain.common.extensions.toNetworkId
|
||||
|
|
@ -37,6 +38,7 @@ data class WalletData(
|
|||
|
||||
fun isAvailableToSwap(swapInteractor: SwapInteractor, isExchangeFeatureOn: Boolean): Boolean {
|
||||
return swapInteractor.isAvailableToSwap(currency.blockchain.toNetworkId()) &&
|
||||
currency.blockchain.id != Blockchain.Optimism.id && // disable optimism blockchain for now
|
||||
isExchangeFeatureOn &&
|
||||
!currency.isCustomCurrency(null)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue