Updated on 2026-08-14

This commit is contained in:
Tangem 2024-08-15 12:50:39 +04:00
parent da309aadfa
commit 0eec777144
4 changed files with 8 additions and 4 deletions

View file

@ -122,6 +122,10 @@ internal class NetworkStatusFactory {
Address.Type.Secondary -> NetworkAddress.Address.Type.Secondary
}
if (address.value.isBlank()) {
Timber.w("Address value is blank")
}
return NetworkAddress.Address(address.value, type)
}
}

View file

@ -9,6 +9,6 @@ class GetManagedTokensUseCase(
) {
operator fun invoke(context: ManageTokensListBatchingContext, batchSize: Int = 40): ManageTokensListBatchFlow {
return repository.tokensFlow(context, batchSize)
return repository.getTokenListBatchFlow(context, batchSize)
}
}

View file

@ -5,5 +5,5 @@ import com.tangem.domain.managetokens.model.ManageTokensListBatchingContext
interface ManageTokensRepository {
fun tokensFlow(context: ManageTokensListBatchingContext, batchSize: Int): ManageTokensListBatchFlow
fun getTokenListBatchFlow(context: ManageTokensListBatchingContext, batchSize: Int): ManageTokensListBatchFlow
}

View file

@ -4,7 +4,7 @@ import arrow.core.Either
import com.tangem.blockchain.common.transaction.Fee
import com.tangem.domain.tokens.model.CryptoCurrency
import com.tangem.domain.transaction.TransactionRepository
import com.tangem.domain.utils.convertToAmount
import com.tangem.domain.utils.convertToSdkAmount
import com.tangem.domain.wallets.models.UserWalletId
import java.math.BigDecimal
@ -23,7 +23,7 @@ class CreateApprovalTransactionUseCase(
hash: String? = null,
) = Either.catch {
transactionRepository.createApprovalTransaction(
amount = amount.convertToAmount(cryptoCurrency),
amount = amount.convertToSdkAmount(cryptoCurrency),
contractAddress = contractAddress,
spenderAddress = spenderAddress,
userWalletId = userWalletId,