From 38f27a326a3a4dab016f4325d638a8fa20cdd686 Mon Sep 17 00:00:00 2001 From: Tangem Date: Fri, 15 May 2026 14:28:57 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../feature/swap/domain/SwapInteractorImplApplySwapFeeTest.kt | 4 ---- .../swap/domain/SwapInteractorImplLoadDexSwapDataNoFeeTest.kt | 3 --- 2 files changed, 7 deletions(-) diff --git a/features/swap/domain/src/test/kotlin/com/tangem/feature/swap/domain/SwapInteractorImplApplySwapFeeTest.kt b/features/swap/domain/src/test/kotlin/com/tangem/feature/swap/domain/SwapInteractorImplApplySwapFeeTest.kt index 9c02543fe9..f608e724fa 100644 --- a/features/swap/domain/src/test/kotlin/com/tangem/feature/swap/domain/SwapInteractorImplApplySwapFeeTest.kt +++ b/features/swap/domain/src/test/kotlin/com/tangem/feature/swap/domain/SwapInteractorImplApplySwapFeeTest.kt @@ -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, diff --git a/features/swap/domain/src/test/kotlin/com/tangem/feature/swap/domain/SwapInteractorImplLoadDexSwapDataNoFeeTest.kt b/features/swap/domain/src/test/kotlin/com/tangem/feature/swap/domain/SwapInteractorImplLoadDexSwapDataNoFeeTest.kt index 05dc76b5b6..b1af123e7b 100644 --- a/features/swap/domain/src/test/kotlin/com/tangem/feature/swap/domain/SwapInteractorImplLoadDexSwapDataNoFeeTest.kt +++ b/features/swap/domain/src/test/kotlin/com/tangem/feature/swap/domain/SwapInteractorImplLoadDexSwapDataNoFeeTest.kt @@ -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())