# Infinite approval

Infinite approval is a programming practice that <mark style="color:purple;">**enables smart contracts to spend an unlimited amount of funds on a user’s account**</mark>. In most cases, smart contracts are authorized to use a specific amount of funds. However, when an infinite approval is established, a smart contract asks to be granted access to an unlimited number of coins or tokens stored in the user’s account.

In the cryptocurrency world, <mark style="color:purple;">**this practice is quite controversial**</mark><mark style="color:purple;">.</mark>

## <mark style="color:purple;">Why is it controversial?</mark>

It is quite controversial because in case smart contracts have vulnerabilities, or there is an attack by hackers, an attacker could have unlimited access to the funds in your wallet to which you have given infinite approval. This is why the Jwallet gives you the option of not giving infinite approval and therefore only signing the transactions you are making at that precise moment.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jigstack.gitbook.io/jproducts/jwallet/jwallet-browser-extension/swap-and-bridge-s-and-b/advanced-option/infinite-approval.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
