Updated on 2026-08-14
This commit is contained in:
parent
8124a142de
commit
91e6477b10
2 changed files with 1 additions and 14 deletions
|
|
@ -16,7 +16,7 @@ internal object SwapUtils {
|
|||
/** List of supported provider types in Send with Swap */
|
||||
internal val SEND_WITH_SWAP_PROVIDER_TYPES = listOf(
|
||||
ExpressProviderType.CEX,
|
||||
ExpressProviderType.DEX,
|
||||
// ExpressProviderType.DEX, // TODO disable until implemented in Send with Swap
|
||||
)
|
||||
|
||||
fun getExpressErrorMessage(expressError: ExpressError): TextReference {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package com.tangem.features.swap.v2.impl.sendviaswap.model
|
|||
|
||||
import arrow.core.Either
|
||||
import arrow.core.getOrElse
|
||||
import com.tangem.blockchain.common.transaction.Fee
|
||||
import com.tangem.common.ui.navigationButtons.NavigationUM
|
||||
import com.tangem.core.decompose.di.ModelScoped
|
||||
import com.tangem.core.decompose.model.Model
|
||||
|
|
@ -44,7 +43,6 @@ import kotlinx.coroutines.launch
|
|||
import timber.log.Timber
|
||||
import javax.inject.Inject
|
||||
import kotlin.properties.Delegates
|
||||
import com.tangem.features.send.v2.api.entity.FeeSelectorUM as FeeSelectorUMRedesigned
|
||||
|
||||
@Suppress("LongParameterList")
|
||||
@ModelScoped
|
||||
|
|
@ -162,17 +160,6 @@ internal class SendWithSwapModel @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
fun getSelectedFeeToken(): CryptoCurrency {
|
||||
val feeUMV2 = uiState.value.feeSelectorUM as? FeeSelectorUMRedesigned.Content
|
||||
val feeExtended = feeUMV2?.feeExtraInfo?.transactionFeeExtended
|
||||
val isFeeInTokenCurrency = feeExtended?.transactionFee?.normal is Fee.Ethereum.TokenCurrency
|
||||
return if (isFeeInTokenCurrency) {
|
||||
feeUMV2.feeExtraInfo.feeCryptoCurrencyStatus.currency
|
||||
} else {
|
||||
primaryFeePaidCurrencyStatusFlow.value.currency
|
||||
}
|
||||
}
|
||||
|
||||
private fun initUserWallet() {
|
||||
getUserWalletUseCase(params.userWalletId).fold(
|
||||
ifRight = { wallet ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue