# Setting up Sweeps and Alerts

### **What are Sweeps?**

**Sweeps** in cryptocurrency and wallets system refer to a **process** of **automatically** **transferring** **cryptocurrency** from **one** **wallet** to **another** based on predefined rules or configurations. This includes setting thresholds or triggers that, once met, initiate the transfer of funds. Sweeps are a good tool to use to consolidate assets for security purposes or to automate the management of funds to ensure optimal liquidity.&#x20;

In the case of Pay.io, we offer **a two-wallet system** — **Hot Wallet** and **Treasury Wallet**.&#x20;

* **Hot Wallet** contains your assets with active deposited funds. This is what is used to operate your Cashier UI and Payment Gateway to support withdrawals, gather deposits and support floats. Hot Wallets can have **sweeps to Treasury Wallet**, with special configurations for **withdrawal limits** and **balance alerts**.
* **Treasury Wallet** acts as a “safe vault”, where the funds from your Hot Wallet are sent or swept to. **This wallet is in your custody, not Pay.io's**. You can always transfer funds from Treasury Wallet to your Hot Wallet.&#x20;

### **Setting up Sweeps and Alerts**

As the Hot Wallet can keep liquidity all the time, it is important to protect it by setting up sweeps. Sweeps are set up asset by asset, and the established configurations for an asset are global. This means that all the users in your account will see the same configurations for an asset.  &#x20;

#### **Prerequisites**&#x20;

* Ensure that your **assets** have been **set up** and **configured**.&#x20;
* The **first** **deposits** have been **made,** meaning **operational float has been established through your first deposit.**&#x20;

#### Configuration

{% stepper %}
{% step %}

#### Go to the Hot Wallet Page

**Navigate** to **Hot Wallet** page from the left-hand navigation and **choose** the **asset** for which you wish to set up sweeps logic for.&#x20;

Click on the “Edit” icon under the “Actions” menu at the end of the table row.&#x20;

You'll be able to set a different sweep configuration and alert for each asset.&#x20;
{% endstep %}

{% step %}

#### Specify Your Transaction Type

In the pop-up, select the preferred **transaction** **type** — either **crypto** or **fiat**.&#x20;

This will also determine the view you'll see for the following steps.&#x20;

{% hint style="info" %}
**How Fiat and Crypto types differ from each other?**&#x20;

When configuring **limits** for your **Hot Wallet**, such as auto-approvals or sweeps, you can choose to set your thresholds in either Crypto or Fiat.

* Setting limits in Crypto means the system will always use the exact token amount you specify (for example, 5 BTC). Because crypto prices are constantly moving, the real-world value of this limit will fluctuate with the market.
* Setting limits in Fiat means the system uses live conversion rates to maintain a specific currency value (for example, € 10,000). This shields your operational limits from market volatility, making your treasury budgeting much more predictable.

**You can switch between these two options at any time. The system will always apply your most recently saved configuration.**
{% endhint %}

<figure><img src="/files/FTpTTM71X172sLA6dMk5" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Configuration Steps for Crypto Type

1. For crypto, you'll be able to edit the **maximum retained balance** in the asset currency. This is the **maximum** **balance** that will be **left** in the **Hot Wallet** **address**. Any **amount** that **exceeds** this amount, **will** be **automatically** **transferred** (“swept”) to your **Treasury** Wallet.&#x20;
2. In this window, you can also configure the **minimum balance alert** in your asset currency. This alert will be **sent** when the **balance** of the Hot Wallet address **falls** **below** the **specified** **amount**. \
   \
   Alerts are sent as **emails** **once (1)** an **hour** if the balance falls below the set limit. The email will come **ONLY** if the balance of the asset is **lower** than the **set** **limit**. The balance can often fluctuate if deposits are made to the hot wallet by Cashier UI users.  <br>
3. To enable the alert, ensure that the **toggle** under Custody Address is **green**.&#x20;
4. The “Custody Address” field is automatically populated with your Treasury Wallet address, to which configured sweeps will transfer the assets.&#x20;
5. To finalise setting the configuration, click on “Save Changes”.

<figure><img src="/files/cwLUutMRsmw8VbVtChWi" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Configuration Steps for Fiat Type

1. For Fiat, you'll be able to edit the **maximum retained balance** in the asset currency. This is the **maximum** **balance** that will be **left** in the **Hot Wallet** **address**. Any **amount** that **exceeds** this amount, **will** be **automatically** **transferred** (“swept”) to your **Treasury** Wallet.&#x20;
2. In this window, you can also configure the **minimum balance alert** in your asset currency. This alert will be **sent** when the **balance** of the Hot Wallet address **falls** **below** the **specified** **amount**.&#x20;
3. To enable the alert, ensure that the **toggle** under Custody Address is **green**.&#x20;
4. The “Custody Address” field is automatically populated with your Treasury Wallet address, to which configured sweeps will transfer the assets.&#x20;
5. To finalise setting the configuration, click on “Save Changes”.

<figure><img src="/files/OcLDtMv40DV0yuPTasFf" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# 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://docs.pay.io/assets/setting-up-sweeps-and-alerts.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.
