# 编辑支出上限

当你将钱包连接到 dApp 并执行如交换（swap）或质押（staking）等操作时，dApp 通常会请求使用你代币的权限——而且通常是无限授权。\
对于可信且成熟的项目，授予无限授权是常见做法，并通常被认为是安全的。然而，并非所有 dApp 都是可靠的。如果你不小心向恶意或未经验证的 dApp 授予无限代币访问权限，它可能会提取你钱包中所有已授权的资产。这是在加密领域中一种常见且严重的安全风险。

为了解决这一问题，KEYRING PRO Wallet 在 5.5.0 版本中引入了 Edit Spending Cap 功能。

**工作原理：**\
当 dApp 请求无限代币授权时，你现在可以选择设置自定义支出上限，而不是仅仅点击“Approve”或“Decline”。\
你可以自行定义该 dApp 允许使用的最大代币数量。

通过设置支出上限，你可以始终掌控自己的资产。即使你与存在风险的 dApp 进行交互，潜在损失也会被限制在已授权的金额范围内——它就像一个你希望永远用不到，但在关键时刻会非常庆幸拥有的安全网。

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


---

# 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/zh/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.
