# Edit Spending Limit

When connecting your wallet to a dApp and performing actions like swaps or staking, the dApp typically requests permission to spend your tokens—often as an **unlimited approval**.

For trusted and well-established projects, granting unlimited approval is common and generally considered safe. However, not all dApps are reliable. If you accidentally approve unlimited token access to a malicious or unverified dApp, it could potentially drain all approved assets from your wallet. This is a common and serious security risk in the crypto space.

To address this, the KEYRING PRO Wallet introduces **Edit Spending Cap** in version 5.5.0.

**How it works:**

* When a dApp requests unlimited token approval, you now have the option to **set a custom spending limit** instead of simply Approve or Decline
* You can define the maximum amount of tokens the dApp is allowed to use

By setting a spending cap, you stay in control of your assets. Even if you interact with a risky dApp, potential losses are limited to the approved amount—acting as a safety net you hope to never need, but will be glad to have.

<figure><img src="/files/vpCb7xWeFyv31kk2yTPe" alt=""><figcaption></figcaption></figure>

<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://help.keyring.app/keyring-pro/how-to-use/edit-spending-limit.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.
