Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-14 14:22:01 +04:00
parent 589805424e
commit c448a1aebb
8 changed files with 64 additions and 57 deletions

View file

@ -0,0 +1,20 @@
package com.tangem.domain.transaction.usecase
import com.tangem.domain.models.network.Network
import com.tangem.domain.transaction.WalletAddressServiceRepository
class IsMemoRequiredUseCase(
private val walletAddressServiceRepository: WalletAddressServiceRepository,
) {
suspend operator fun invoke(network: Network, destinationAddress: String): Boolean {
return try {
walletAddressServiceRepository.isMemoRequired(
network = network,
destinationAddress = destinationAddress,
)
} catch (_: Throwable) {
false
}
}
}