Updated on 2026-08-14

This commit is contained in:
Tangem 2026-05-15 14:28:57 +05:00
parent edff76b5d9
commit 38f27a326a
2 changed files with 0 additions and 7 deletions

View file

@ -13,7 +13,6 @@ import com.tangem.domain.tokens.model.warnings.CryptoCurrencyCheck
import com.tangem.feature.swap.domain.fee.TransactionFeeResult
import com.tangem.feature.swap.domain.models.SwapAmount
import com.tangem.feature.swap.domain.models.domain.ExchangeProviderType
import com.tangem.feature.swap.domain.models.domain.IncludeFeeInAmount
import com.tangem.feature.swap.domain.models.domain.PreparedSwapConfigState
import com.tangem.feature.swap.domain.models.domain.SwapBalanceStatus
import com.tangem.feature.swap.domain.models.ui.*
@ -68,7 +67,6 @@ internal class SwapInteractorImplApplySwapFeeTest : SwapInteractorImplTestBase()
} returns Unit.right()
coEvery { walletManagersFacade.getNativeTokenBalance(any(), any(), any()) } returns BigDecimal("10")
coEvery { getFeePaidCryptoCurrencyStatusSyncUseCase.invoke(any(), any()) } returns null.right()
coEvery { multiWalletCryptoCurrenciesSupplier.getSyncOrNull(any()) } returns null
coEvery { currenciesRepository.createCoinCurrency(any()) } returns buildCoinCurrency()
}
@ -226,11 +224,9 @@ internal class SwapInteractorImplApplySwapFeeTest : SwapInteractorImplTestBase()
preparedSwapConfigState = PreparedSwapConfigState(
balanceStatus = SwapBalanceStatus.Pending,
hasOutgoingTransaction = false,
includeFeeInAmount = IncludeFeeInAmount.Excluded,
),
permissionState = PermissionDataState.Empty,
swapDataModel = null,
txFee = TxFeeState.Empty,
currencyCheck = null,
validationResult = null,
minAdaValue = null,

View file

@ -12,9 +12,7 @@ import com.tangem.feature.swap.domain.models.domain.ExchangeProviderType
import com.tangem.feature.swap.domain.models.domain.ExpressTransactionModel
import com.tangem.feature.swap.domain.models.domain.SwapBalanceStatus
import com.tangem.feature.swap.domain.models.domain.SwapDataModel
import com.tangem.feature.swap.domain.models.domain.SwapFeeState
import com.tangem.feature.swap.domain.models.ui.SwapState
import com.tangem.feature.swap.domain.models.ui.TxFeeState
import io.mockk.coEvery
import io.mockk.coVerify
import kotlinx.coroutines.test.runTest
@ -76,7 +74,6 @@ internal class SwapInteractorImplLoadDexSwapDataNoFeeTest : SwapInteractorImplTe
coEvery { quotesRepository.getMultiQuoteSyncOrNull(any()) } returns emptySet()
coEvery { multiQuoteStatusFetcher.invoke(any()) } returns Unit.right()
coEvery { getFeePaidCryptoCurrencyStatusSyncUseCase.invoke(any(), any()) } returns null.right()
coEvery { multiWalletCryptoCurrenciesSupplier.getSyncOrNull(any()) } returns null
coEvery { currenciesRepository.createCoinCurrency(any()) } returns buildCoinCurrency()
coEvery {
getAllowanceInfoUseCase.invoke(any(), any(), any(), any())