# Hot Wallet Top-ups and Sweeps: Thresholds, Limits, Approvals

> How exchanges and payment companies keep hot wallets inside a balance range: minimums and maximums, caps, approvals, failure modes, and how to test rules first.

URL: https://ana.fi/blog/hot-wallet-top-ups-and-sweeps/

[ANA.FI](https://ana.fi/) / [BLOG](https://ana.fi/blog/) / TREASURY

## Hot wallet top-ups and sweeps: thresholds, limits and approvals

Updated 22 November 2026 · 4 min read

#### On this page

- How do you set the minimum and the maximum?
- Which limits does a refill rule need?
- What should happen past a limit?
- What about depegs and cold storage?
- How Anafi Treasury does it
- Six questions to ask any vendor
- Related

A top-up refills a hot wallet when its balance falls below a minimum. A sweep moves the surplus back when the balance rises above a maximum. Together they keep each hot wallet inside a range, so withdrawals keep flowing and only a small, known amount is exposed online at any moment.

| Approach | Who can move funds | Where the limits live | Trade-off |
| --- | --- | --- | --- |
| Manual signing | Your signers, each time | In a runbook | Every transfer waits for signers, nights and weekends included |
| A script with a hot key | Whoever controls the script | In the script itself | One key or one bad deploy can move everything |
| A wallet platform’s automation | The platform, under your policies | In the platform | Covers the wallets held on that platform |
| Rules signed on your own wallets | An engine that can sign only what the rules allow | In a rule file your signers approved | Automation stops if the engine is offline; funds stay where they are |

### How do you set the minimum and the maximum?

- **The minimum** covers the withdrawals you expect while a refill is on its way.
- **The maximum** is the most you accept to have online in one wallet. What a hot wallet holds is what is exposed if it is compromised.

Do not guess either number. Replay your own history against the rule and read off two things: the largest balance each hot wallet would have reached, and how often it would have been refilled.

### Which limits does a refill rule need?

- **A cap per transfer**, so one refill cannot be large.
- **A rolling cap** per hour, day or week, so many small refills cannot add up.
- **A destination allowlist**, so funds move only between your own wallets.
- **A time window**, if refills should run only in certain hours.
- **An approval step** for transfers above a size you choose.
- **A freeze** that stops every outflow in one step.

The limits should sit outside the code that moves the money. If the team that writes the automation can also change its limits, a single bad deploy can overpay.

### What should happen past a limit?

The next transfer is refused, the decision is recorded, and someone is told. From there people take over. In a withdrawal spike this means refills keep the hot wallet in its range until the daily cap is reached and then stop, and your signers move funds by hand past that point.

### What about depegs and cold storage?

A depeg guard moves a wallet out of a stablecoin that slips from its peg, once, and counts the swap toward the daily cap. Cold storage stays outside automation: rules may send surplus up to cold and never take it out, so only your signers move money out of the cold wallet.

### How Anafi Treasury does it

[Anafi Treasury](https://ana.fi/products/treasury/) runs top-ups and sweeps on rules your signers approve once.

- **Your wallets, as they are.** Anafi is technology agnostic. On a Safe, signers enable one module and the Safe keeps its owners and threshold. MPC wallets, ERC-4337 and EIP-7702 accounts work too, and a plain-key hot wallet connects through a Permit2 approval.
- **Keys.** Your signers keep every key. The engine holds only its own signing key, inside an Intel TDX enclave, and the module accepts a transfer only with a valid engine signature that has not expired or been used before.
- **Limits.** There are 15 rule types, including all six above and a depeg guard. Past a cap the engine refuses to sign, records the decision and notifies you by email. Depending on the account type, some caps are also enforced on chain.
- **Testing.** Three stages: a replay of 30 to 365 days of your own activity, with shocks such as a withdrawal spike, a depeg or a chain halt; a dry run that watches your real wallets and records what the rules would have done; then live.
- **Stopping.** If Anafi goes offline, automation stops and funds stay in your Safe. The engine signs a heartbeat that records the block it has processed to, so anyone can see if it has stopped. To leave, one multisig transaction per Safe removes the module.

It works beside an existing policy engine: the policy engine approves or blocks a transfer, and Anafi decides when a transfer is needed.

### Six questions to ask any vendor

- Who holds the keys, and who can sign a transfer?
- Where do the limits live, and who can change them?
- What happens to the next transfer when a cap is reached?
- Can we replay the rules against our own history before going live?
- What proves that no transfer was skipped or sent twice?
- If we leave, what has to move?

### Related

- [Hot wallet top-ups and sweeps](https://ana.fi/use-cases/top-ups-sweeps/): the use case page
- [Anafi for exchanges](https://ana.fi/industries/exchanges/)
- [Stablecoin treasury automation for payment service providers](https://ana.fi/industries/payment-service-providers/)
- [Auditability & Compliance](https://ana.fi/auditability-compliance/): how the engine proves it skipped nothing
- [Stablecoin treasury policy: caps, allowlists, approval tiers and a freeze](https://ana.fi/blog/stablecoin-treasury-policy-rules/)
- [Stablecoin payroll and contractor payouts](https://ana.fi/blog/stablecoin-payroll-and-contractor-payouts/): a payout wallet refilled after it pays

On this page

- Which limits does a refill rule need?
- What should happen past a limit?
- What about depegs and cold storage?
- How Anafi Treasury does it
- Six questions to ask any vendor
- Related

Try it

Build a rule in the sandbox. Nothing real moves.

[Start in sandbox](https://portal.ana.fi/) [Talk to Us](https://ana.fi/talk/)

More guides

#### Custodial vs non-custodial treasury automation: who can move what

Who holds the keys, who sets the limits, and what happens when the vendor is offline.

Updated 26 Nov 2026 · 4 min read

#### How to run stablecoin payroll and contractor payouts: batches, approvals and privacy

Payday without signers on call: salaries, changing invoices, bank payouts and who sees the names.

Updated 26 Nov 2026 · 6 min read

#### Recurring stablecoin payments compared: approvals, Permit2, session keys and mandates

What each permission lets a spender do, and what it still leaves you to build.

Updated 26 Nov 2026 · 5 min read

### USE CASES

#### For businesses

- [Direct Debit Billers pull what the payer approved. Never more.](https://ana.fi/use-cases/direct-debit/)
- [Autopay Pay on a date, or the moment money arrives.](https://ana.fi/use-cases/autopay/)
- [Subscriptions Recurring revenue through one widget.](https://ana.fi/use-cases/subscriptions/)
- [Top-ups & sweeps Warm tops up hot. Surplus sweeps back.](https://ana.fi/use-cases/top-ups-sweeps/)
- [Payouts & payroll Batches on schedule. Large payouts wait for approvers.](https://ana.fi/use-cases/payouts-payroll/)
- [On/off-ramp Stablecoin on-ramp and off-ramp, through licensed partners.](https://ana.fi/use-cases/on-off-ramp/)
- [Recurring off-ramp Stablecoins to a user's bank, on a schedule.](https://ana.fi/use-cases/recurring-off-ramp/)
- [Bill pay Rent and bills, paid by bank transfer.](https://ana.fi/use-cases/bill-pay/)

#### For your wallet

- [Limit orders A trade that waits in your own wallet for a price level or a watched wallet's transfer.](https://ana.fi/use-cases/limit-orders/)
- [Reimbursements Pay a wallet back a share of each payment it makes.](https://ana.fi/use-cases/reimbursements/)
- [Follow a wallet Act when another address receives or sends a token.](https://ana.fi/use-cases/follow-a-wallet/)
- [Auto-convert Swap incoming tokens into a stablecoin as they arrive.](https://ana.fi/use-cases/auto-convert/)
- [Payment splitting Split each incoming payment between payees, by amount or share.](https://ana.fi/use-cases/payment-routing/)
- [Tax set-aside Set aside a percent of each incoming payment for your tax bill.](https://ana.fi/use-cases/tax-set-aside/)

NEXT STEP

### Start in the sandbox. Nothing real moves.

Or write to [hi@ana.fi](mailto:hi@ana.fi).

[Talk to Us](https://ana.fi/talk/)
