Updated on 2026-08-14

This commit is contained in:
Tangem 2023-10-16 17:03:14 +03:00
parent 3caa5a1665
commit 085f298798

View file

@ -351,6 +351,7 @@ internal class SwapInteractorImpl @Inject constructor(
}
private suspend fun isAllowedToSpend(networkId: String, fromToken: Currency, amount: SwapAmount): Boolean {
if (fromToken is Currency.NativeToken) return true
return getSelectedWalletSyncUseCase().fold(
ifRight = { userWallet ->
val allowance = repository.getAllowance(