ana
fi
ANA.FI/BLOG/TREASURY

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

Updated · 4 min read

On this page

Treasury automation is custodial when the vendor that moves your stablecoins also holds the keys. It is non-custodial when your own signers keep every key and the vendor can act only inside limits those signers approved. The difference decides who can move funds, who can change the limits, and what happens when the vendor fails.

A custodian A wallet platform Rules on your own wallets (Anafi Treasury)
Who holds the keys The custodian Key shares split between you and the vendor Your signers
Who starts a routine transfer The custodian, on your instruction The platform, under your policies An engine that signs only what the rules allow
Where the limits live In the custodian’s procedures In the platform’s policy engine In a rule file your signers approved
If the vendor is offline Transfers wait Transfers usually wait Automation stops; signers move funds by hand
To leave Withdraw the assets Move the funds out Remove one module

In short: a custodian holds the keys, a wallet platform shares them with you, and with rules on your own wallets your signers keep every key.

What does a custodian give you, and what does it cost?

A custodian takes key management off your hands, and a regulated third party holds the assets. In exchange you depend on it for every transfer. Its cut-off times, approval steps and availability become yours, and someone else can move your funds.

What does a wallet platform change?

A wallet platform typically splits each key with multi-party computation (MPC), so no single party holds a whole key, and a policy engine approves or blocks each transfer. Many platforms include automation such as sweeping. It covers the wallets held on that platform, and the limits and the automation live in the vendor’s system.

What is an MPC wallet, and how is it different from a custodial wallet?

An MPC wallet splits each key with multi-party computation, so no single party holds a whole key. With a custodial wallet, a third party holds the keys and moves funds on your instruction. For a company’s stablecoin treasury the difference is who can move funds and who can change the limits. Anafi Treasury adds automation to an MPC wallet or a Safe without taking a key: your signers keep every key, and the engine signs only what the rules allow.

What does non-custodial automation look like?

Funds sit in wallets your signers control, such as a multisig. The signers approve a set of rules once. An engine may then sign routine transfers, but the wallet accepts a transfer only if it carries a valid engine signature and fits the rules. Changing a limit needs the signers again.

The engine is a second lock, not a second owner. It can sign only what the rules allow, and the signers can always move funds without it.

Three questions that separate the models

  1. Can the vendor send funds to an address you did not approve? With a destination allowlist in signed rules, it cannot.
  2. Can the people who run the automation change its limits? If they can, one bad deploy can overpay.
  3. Can you see every decision, including the refused ones? A record of denied transfers matters as much as a record of sent ones.

What happens when something fails?

  • The vendor is offline. In the custodial and platform models, transfers usually wait for the vendor. In the non-custodial model, automation stops and your signers move funds by hand, as they did before.
  • A hot wallet is compromised. What that wallet holds is exposed, in every model. A maximum balance keeps that amount small.
  • A limit is reached. The next transfer should be refused, recorded and reported, and people take over from there.

How Anafi Treasury does it

Anafi Treasury is the third column: rules on your own wallets.

  • Keys. Your signers keep every key. The engine holds only its own signing key, inside an Intel TDX enclave.
  • Wallets. 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.
  • Limits. 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. Depending on the account type, some caps are also enforced on chain.
  • Record. A refused transfer is recorded and you are notified by email. The engine signs a heartbeat that records the block it has processed to.
  • Leaving. One multisig transaction per Safe removes the module. There are no funds to migrate, because they never left your wallets.

It works beside an existing policy engine: the policy engine approves or blocks a transfer, and Anafi decides when a transfer is needed. Anafi is software. It holds no funds and is not a custodian, and this guide is not legal advice.

More guides

USE CASES

NEXT STEP

Start in the sandbox.
Nothing real moves.

Or write to hi@ana.fi.

Message Us

We will be in touch with you within one business day.

By sending you agree to our Privacy Policy.