# SmartSweep

<figure><img src="https://content.gitbook.com/content/wm1DIvbGMREWT1TdLPtz/blobs/4Ee1kHnwFqeZaZwzJYDx/payram-feature-smartsweep.png" alt=""><figcaption></figcaption></figure>

SmartSweep automatically transfers funds from Customer Deposit Wallets to your designated Cold Wallet, helping you consolidate balances securely and efficiently, without manual intervention or exposed keys.

***

### **Why it matters**

* **Save time:** No more manual consolidation of deposits.
* **Improve efficiency:** Maintain optimal wallet balances for payouts and settlements.
* **Enhance security:** Sweep operations use smart contracts, not private keys.
* **Stay audit-ready:** Every sweep transaction is logged and traceable.
* **Lower costs:** Fewer transactions mean reduced operational and network fees.

***

### **SmartSweep workflow**

1. **Customer Deposit Wallets** receive funds from individual users.
2. **SmartSweep** automatically detects available balances that meet the pre-configured threshold.
3. The system initiates an onchain transaction.
4. Funds are moved from deposit wallets to your designated **Cold Wallet**.
5. Each sweep is confirmed, logged, and visible in your **SmartSweep Dashboard**.

***

### **How it works**

Once a wallet is activated, PayRam can sweep funds automatically based on three configurable settings:

1. **Amount:** SmartSweep is triggered when either,
   * An individual deposit wallet’s balance reaches the set amount, or,
   * The total balance across multiple wallets in a batch reaches the set amount.
2. **Address count:** The sweep occurs after a set number of deposit addresses have received funds.
3. **Time:** The sweep occurs after a set time period has elapsed.
