> For the complete documentation index, see [llms.txt](https://references.everstrike.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://references.everstrike.io/account/spending-cap.md).

# Spending Cap

A spending cap is an ERC-20 allowance. It lets a smart contract transfer a set token amount from your wallet.

Many decentralized applications use token allowances to support deposits.

On Everstrike, the allowance lets the Deposit Contract transfer approved `USDC` from your wallet.

### Why is the spending cap necessary? <a href="#h_7b05180bae" id="h_7b05180bae"></a>

Without the spending cap, tokens cannot be deposited to the Everstrike Deposit Contract.

### What should I choose as spending cap? <a href="#h_edc86c8380" id="h_edc86c8380"></a>

The amount of tokens that you intend to deposit to Everstrike.

### How long does a spending cap last? <a href="#h_1a984a140a" id="h_1a984a140a"></a>

There is no time limit on a spending cap. It remains active until you change or revoke it.

Each transfer reduces the remaining approved amount. Once the contract spends the full amount, no allowance remains.

### Can I revoke a spending cap? <a href="#h_7fb71f0f0d" id="h_7fb71f0f0d"></a>

Yes. Most popular wallets, such as [MetaMask](https://metamask.io/), support spending-cap revocation.

Typically, you can do it directly through your wallet software.

### How can I set a spending cap? <a href="#h_b58f8e4c72" id="h_b58f8e4c72"></a>

Click 'Deposit' next to the asset that you intend to deposit to Everstrike, and specify the desired deposit amount. The Everstrike Frontend UI will prepare a spending cap transaction for you that you can sign within your wallet and publish to the blockchain.

For a step-by-step guide, refer to [How to Deposit, Withdraw and Stake On Everstrike](/account/how-to-deposit-withdraw-and-stake-on-everstrike.md).

### How long does it take to set a spending cap? <a href="#h_79f64e9f5c" id="h_79f64e9f5c"></a>

It depends on the blockchain that you are using, but in general it will take less than 20 minutes. The spending cap transaction needs to receive a specific amount of blockchain confirmations to be considered valid and final.

### Why does MetaMask display a warning when I set a spending cap on Everstrike Mainnet? <a href="#h_85c47b1d5e" id="h_85c47b1d5e"></a>

MetaMask integrates with [Blockaid](https://www.blockaid.io/), a transaction monitoring tool. It alerts you when you grant an [untrusted contract](https://support.metamask.io/configure/wallet/how-to-turn-on-security-alerts/) permission to spend tokens from your account.

The Everstrike Mainnet Deposit Contract is currently flagged as untrusted by Blockaid on Arbitrum One, Optimism, and Polygon. Until Blockaid whitelists the address, MetaMask displays a warning when you set a spending cap on Everstrike Mainnet. Other wallet operations do not trigger this warning.

**What should I do?**

Until Blockaid whitelists the Everstrike Mainnet Deposit Contract address, take extra care:

1\) Verify the contract address against the authoritative addresses below.

2\) Approve only the amount you intend to deposit. Test large deposits first.

The following are the authoritative Everstrike Mainnet Deposit Contract addresses:

* Arbitrum One: [0x61c62c067f38aa92f5db69a30b03b96c4e0b26d4](https://arbiscan.io/address/0x61c62c067f38aa92f5db69a30b03b96c4e0b26d4)
* Optimism: [0xB9C1EC4647301828Bb10f6B52584201D1C16bC8F](https://optimistic.etherscan.io/address/0xB9C1EC4647301828Bb10f6B52584201D1C16bC8F)
* Polygon: [0x4f48c6a228a0bf0c03dc53765930c0cb06f1ecd0](https://polygonscan.com/address/0x4f48c6a228a0bf0c03dc53765930c0cb06f1ecd0)
