Updated on 2026-08-14
This commit is contained in:
parent
3caa5a1665
commit
085f298798
1 changed files with 1 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue