# Anafi Treasury: Automated Stablecoin Treasury Management

> Anafi Treasury moves stablecoins between your own wallets: top-ups, sweeps and payouts on 15 rule types your signers approve once. They keep every key.

URL: https://ana.fi/products/treasury/

## Anafi Treasury: Automated stablecoin treasury management for financial businesses.

Top-ups, sweeps and payouts run by rule. Your signers keep every key.

Book a call

[Start in sandbox](https://portal.ana.fi/)

### Three ways to move money.

Each gives up safety, control or speed.

#### 1 of 3 Bot One hot key can drain it all

An in-house script holds a hot key, a key kept online. Fast, but whoever gets the key or the server gets the funds, and whoever can edit the script can edit its limits.

#### 2 of 3 Custodian Someone else holds the keys

A third party holds the keys and runs transfers under its own policy engine. You depend on their uptime, their policies and their solvency.

#### 3 of 3 Manual Every transfer waits for signers

Signers approve each transfer by hand. Safe, but slow, hard to do at night or on weekends, and easy to get wrong.

### Sign once. Rules run.

Your signers approve the rules once and keep every Safe owner key, and routine transfers run without them.

Cold reserve Your signers

Wallet tier

Reserve. Sample balance $8,000,000. Safe, 2 of 3 signers. Only your signers move money out of Cold. Rules can send surplus up to it, never out of it.

Signers

Your existing Safe signers. A Safe is a wallet that moves funds only when enough of them approve. They approve the rule file once, and again for any change. Day to day they sign nothing. No Safe key is shared with Anafi.

Warm treasury

Wallet tier

Working treasury. Sample balance $1,500,000. Refills Hot and takes back its surplus.

Refill below $100k

Rule

Live

When this hot wallet falls below $100,000, Warm refills it.

Max $500k moved per day

Rule

Live

A limit you set. Here refills, sweeps and payouts together move at most $500,000 a day. Past that, the next transfer is denied and recorded.

Sweep above $150k

Rule

Live

Anything above $150,000 in this hot wallet goes back to Warm.

Hot operations

Wallet tier

Day-to-day operations. Three wallets, sample balance $120,000 each. Each stays between $100k and $150k, which limits what is exposed if one is compromised.

Approval above $25k

Rule

Live

Payouts up to $25,000 go out automatically. Larger ones wait for two approvers you name, who confirm with passkeys. No Safe signature is needed.

Payout partners and vendors

Wallet tier

Pays partners and vendors. Sample balance $40,000. Rules send only to allowlisted addresses.

Rule, checked by the engine

### Who can do what.

Your signers set the rules, the engine applies them and signs, your Safe holds the funds.

#### Zone 1 Your signers Can: approve rules, remove the module Hold: every Safe owner key

Your Safe keeps its owners and its threshold, the number of signatures it needs. Signers approve the rule file and any change to it, and can remove the Anafi module with one multisig transaction.

#### Zone 2 Anafi engine Checks: your rules, then signs transfers Holds: its signing key, no Safe owner key

The engine runs inside an Intel TDX hardware enclave, isolated by the processor from its host. It reads your signed rules, watches the chain, and builds and signs each transfer. It checks every rule before it signs. Its signing key stays inside the enclave, and it holds no Safe owner key. You rely on the enclave and the engine code, not on anyone holding your keys.

#### Zone 3 Your Safe Checks: engine signature, expiry, nonce Holds: the funds. Enforces some caps

Shown with a Safe of any threshold plus one module, an add-on your signers enable. MPC wallets, Permit2 approvals, ERC-4337 and EIP-7702 accounts work too, and you choose which wallets Anafi can act on. The module accepts a transfer only if it carries a valid engine signature that has not expired and has not been used before. It also enforces some of your caps on-chain, so a transfer above them is rejected.

What if

#### Anafi goes offline or shuts down

Automation stops. Funds stay in your Safe and your signers move them by hand as before. If it is for good, remove the module.

#### Anafi is asked for your data

There is nothing to hand over. Anafi holds no funds and no KYC or banking data, and your rules are encrypted. Only your signers, or a view-only key you issue, can read them.

#### A rule is wrong

Every rule passes a sanity check before your signers commit it: types, caps, allowlists, conflicts with your other rules. Replay and dry run then test it before live.

#### You could build it yourself

You can. But then the team that writes the automation also controls its limits. A separate layer, where every change needs your signers, is what protects operations.

#### A signer leaves

Rotate signers in your Safe as you do today. The rules keep running.

#### You want out

One multisig transaction per Safe removes the module. Until then the engine key still works. No funds to migrate.

### A rule is a short file.

A few lines of plain text per rule, in one rule file your signers approve.

Sweep large deposits Weekend float Refill after payouts Settle partners

When $10,000 or more lands in the hot wallet, move it to Warm.

```
large_inflow_to_warm:
  trigger:
    type: incoming_tx
    value: "10000.. USDC"
  actions:
    - type: send_one
      to: "$warm_wallet"
      value: "trigger.value"
```

Every Friday at 16:00 UTC, Warm sends $30,000 to the hot wallet for the weekend.

```
weekend_float:
  trigger:
    type: calendar
    day_of_week: ["fri"]
    time_of_day: "16:00"
    timezone: "UTC"
  actions:
    - type: send_one
      to: "$hot_wallet"
      value: "30000 USDC"
```

Whenever the payout wallet pays out 1 USDC or more, Hot sends it the same amount.

```
refill_payout:
  trigger:
    type: outgoing_tx
    account: "$payout_wallet"
    value: "1.. USDC"
  actions:
    - type: send_one
      to: "$payout_wallet"
      value: "trigger.value"
```

Every day at 15:00, weekends included, the payout wallet pays three partners in one batch.

```
daily_settlement:
  trigger:
    type: calendar
    day_of_week: ["mon", "tue", "wed", "thu", "fri", "sat", "sun"]
    time_of_day: "15:00"
  actions:
    - type: send_batch
      recipients:
 - { to: "$partner_a", value: "12000 USDC" }
 - { to: "$partner_b", value: "8000 USDC" }
 - { to: "$partner_c", value: "5000 USDC" }
```

Applies to every rule · the engine refuses anything else

```
global:
  token_allowlist: [USDC, USDT0]
  recipient_allowlist:
 ["$cold_wallet", "$warm_wallet", "$hot_wallet", "$payout_wallet",
 "$partner_a", "$partner_b", "$partner_c"]
```

Builder or code Signers approve Engine runs it

### Collect. Keep funded. Pay out.

Deposits, float and payouts run by rule, nights and weekends included.

View as

Orchestrator Payments company

All Collect Keep funded Pay out

Collect

Deposits are swept into the hot wallet as they arrive.

Little sits on deposit addresses. The excess moves on to Warm.

Keep funded

The hot wallet is refilled below $100k and swept above $150k.

No signer is needed, and little sits exposed.

Pay out

Partners and vendors are paid in batches on a schedule.

Only allowlisted addresses are paid. Above $25k waits for approvers.

### Every transfer meets a rule.

Every transfer is checked in order and none can be skipped, so the record has no gaps.

15 rule types

Each transfer gets one decision and one place in the record.

The line waits. Nothing overtakes.

No transaction skipped signed record, in order

Proof of non-omission

A transaction cannot be skipped

The engine takes transfers strictly in order, one line per chain, and signs a record of how far it has processed. If one cannot go through, it halts and retries. It does not move on to the next. Anyone can check the record for gaps.

Allow signed and sent Approve held for two approvers Deny not signed, recorded

Outcome

Inside every rule. The engine signs it and records the decision.

Outcome

The engine holds the transfer until two of your named approvers confirm with passkeys. Only that transfer waits; the others go on. You choose which wallets need approvers. It is designed for reserves.

Outcome

The engine refuses to sign, records the decision and notifies you by email. Nothing moves.

Try a transfer

Amount

$5,000 $30,000 $600,000

Destination

Allowlisted partner New address

Send

Sample rules. The engine checks each transfer before it signs.

15 rule types

Rule 1 of 15

Live

Per-transfer cap

No single transfer above a set size.

Max $250,000 per transfer

Rule 2 of 15

Live

Rolling caps

A ceiling on total outflow per hour, day or week.

Max $500,000 per day

Rule 3 of 15

Live

Count limits

A ceiling on the number of transfers in a period.

Max 200 payouts per day

Rule 4 of 15

Live

Destination allowlist

Transfers go only to addresses in your signed rule file.

New address: refused

Rule 5 of 15

Live

Asset and chain allowlist

Only the tokens and chains you list are used.

USDC and USDT0 only

Rule 6 of 15

Live

Time windows

Chosen transfers run only during set hours.

Sweeps to Cold: weekdays 08:00 to 18:00

Rule 7 of 15

Live

Approval tiers

Larger transfers wait for approvers you name, not for Safe signers.

Payouts above $25,000: 2 approvers

Rule 8 of 15

Live

Concentration cap

No wallet holds more than a set share of the total.

Each hot wallet under 5% of total

Rule 9 of 15

Live

Gas reserve

Each wallet keeps enough to pay network fees.

Keep 0.5 native token

Rule 10 of 15

Live

Depeg guard

If a stablecoin slips from its $1 peg, move out of it.

Below $0.985: swap to USDC

Rule 11 of 15

Live

Scheduled sweep

Move balances on a fixed schedule.

Every day at 18:00, sweep to Warm

Rule 12 of 15

Live

Freeze all outflows

One rule stops every outflow the engine would sign.

Until signers lift it

Rule 13 of 15

Live

Rules on rules

Limits on who can change rules and how fast.

24h delay on cap increases

Rule 14 of 15

Live

Min and max balance

Keep a wallet inside a range.

Hot: $100k to $150k

Rule 15 of 15

Live

Price rebalance

Swap when a price crosses a level.

ETH above $4,000: sell 10%

### See the worst case first.

Replay months of your own activity with shocks before any rule goes live.

Shocks

Withdrawal spike Depeg Chain halt

Replay

30 90 180 365

days

Most held in one hot wallet $162,000

The largest balance one hot wallet reached in the replay. If that wallet is compromised, this is at risk at once, and refills keep arriving up to their caps until outflows are frozen. The sweep returns anything above $150,000 to Warm, so only a chain halt lifts it higher. Assumes the engine key is safe.

Most moved in one day $500,000

The largest total the rules moved in one day of the replay. It cannot pass the $500,000 daily cap.

Sample figures. Worst case while the rules hold.

#### Shock Withdrawal spike

Payouts run at ten times a normal day: $500,000 instead of $50,000. Refills keep the hot wallet in its range until the $500,000 daily cap, then stop. Past that, your signers move funds by hand.

#### Shock Depeg

A stablecoin trades below $0.985 for 48 hours. The depeg guard swaps one hot wallet, $120,000, out of it once. The swap stays in your wallets and counts toward the daily cap.

#### Shock Chain halt

One chain stops producing blocks for 6 hours. When it resumes, 6 hours of deposits at $2,000 an hour land at once before the sweep runs.

### Don't trust it. Check it.

What you can verify yourself, and who has reviewed the code.

#### 1 of 4 Security review Third-party, full scope

Full-scope security review by Hexens, August to October 2026. Further audits by other firms are planned.

#### 2 of 4 Signed heartbeat Proof the engine ran

The engine signs a heartbeat recording the block it has processed to. If it stops, the engine has stopped. Anyone can check it, and the engine build, without seeing your rules.

#### 3 of 4 Checks before signing Bad rules caught early

Malformed rules are caught before anyone signs: types, caps, allowlists, impossible dates. Each new rule gets a 90-day replay, a conflict check against your other rules, and a flag on any recipient you have never paid.

#### 4 of 4 Decision record Every allow, approve, deny

Every allow, approve and deny is recorded in the console. Your rules stay private: they are encrypted. Only your signers, or a view-only key you issue, can read them.

### Sandbox. Dry run. Live.

Model it on history, watch it on your real wallets, then switch it on.

Sandbox Replay with shocks

Step 1 of 3

Build your wallet map and rules, then replay 30 to 365 days of activity with shocks. Nothing real moves.

Dry run Real wallets, nothing moves

Step 2 of 3

Rules watch your real wallets and record what they would have done. You compare that with what your team or your own tooling did.

Live Rules move real funds

Step 3 of 3

Signers approve the rule file and enable the module on your existing Safe. Every decision is recorded in the console. One multisig transaction removes the module.

Chains

Ethereum · Polygon · X Layer · Solana (devnet)

Accounts

Safe · MPC · Permit2 (ERC-20 approval) · ERC-4337 · EIP-7702

Rules

Built in our rule builder or written as code

Contact

[hi@ana.fi](mailto:hi@ana.fi)

Bring one transfer you sign by hand or script yourself. We replay it on the call.

Book a call

Anafi Treasury: automated stablecoin treasury management

### FAQ: Questions about Anafi Treasury.

#### What is Anafi Treasury?

Anafi Treasury automates stablecoin treasury for exchanges, payment service providers and other financial businesses. Top-ups, sweeps and payouts between your own wallets run on rules your signers approve once, and your signers keep every key.

#### What is automated stablecoin treasury management?

It moves stablecoins between a company's own wallets by rule, not by hand: a hot wallet is refilled below a minimum and swept above a maximum, and payouts go out on a schedule. With Anafi Treasury your signers approve the rule file once, and every change to it needs them again.

#### Does Anafi Treasury work with MPC wallets or only with Safe?

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.

#### How is Anafi Treasury different from a custodian or a wallet platform?

A custodian holds the keys. A wallet platform splits them between you and the vendor and keeps the limits in its own system. With Anafi Treasury your signers keep every key, the limits live in a rule file they approved, and the engine signs only what the rules allow. It works beside an existing policy engine. See [custodial vs non-custodial treasury automation](https://ana.fi/blog/custodial-vs-non-custodial-treasury-automation/).

#### What limits can we set?

There are 15 rule types, among them caps, a destination allowlist, time windows, approval tiers and a freeze for all outflows. Every change to the rule file needs your signers.

#### What happens if Anafi is offline?

Automation stops and the funds stay in your wallets. Your signers move funds by hand as before. One multisig transaction per Safe removes the module, and there are no funds to migrate.

#### What does Anafi Treasury cost?

It is priced by quote: [talk to us](https://ana.fi/talk/). Partner fees and network fees are separate and passed through.

Keep reading

- [Hot wallet top-ups and sweeps](https://ana.fi/use-cases/top-ups-sweeps/)
- [Automated payouts and payroll](https://ana.fi/use-cases/payouts-payroll/)
- [On-ramp and off-ramp](https://ana.fi/use-cases/on-off-ramp/)
- [For payment service providers](https://ana.fi/industries/payment-service-providers/)
- [For exchanges](https://ana.fi/industries/exchanges/)
- [Trust and security](https://ana.fi/trust-security/)
- [Auditability and compliance](https://ana.fi/auditability-compliance/)
- [Security review report (PDF)](https://github.com/anafi-cc/trust-security/blob/main/reports/2026-10-hexens-security-review.pdf)
