What a circuit breaker watches, and what it cannot predict
A circuit breaker is not a forecast. It does not try to spot an exploit before it happens. Nobody has a reliable way to do that across hundreds of contracts, some newly audited, some not audited at all. What a circuit breaker does is narrower: watch a small number of measurable signals, set a threshold in advance, and act the moment that threshold breaks, without waiting for a person to review the situation first.
In SpendTheBits Earn, that signal is the Yield Safety Score, our 0 to 100 rating built from five inputs: track record, liquidity depth, audit history, the operator behind the vault, and observed yield measured against what the vault advertises. The score updates continuously, and it exists specifically so a single number can drive automation. A vague sense that something feels off is not a DeFi circuit breaker. A rule needs a number to compare itself against, and the number needs to be watched constantly, not checked once a week.
March 13, 2023: how Euler Finance lost $197 million in one function call
The clearest case study for why speed matters is the Euler Finance exploit. On March 13, 2023, an attacker found a gap in the protocol's donateToReserves function. It let a user donate collateral to the protocol's reserves without a health check confirming the user could still cover their own debt afterward [2]. The attacker donated collateral to push their own account underwater on purpose, then self-liquidated it and claimed an oversized liquidation bonus. Repeating that pattern drained roughly $197 million in assets, most of it staked ether [2].
The exploit itself took minutes once the attack transaction was ready. What followed took three weeks. Euler Labs negotiated directly with the attacker, and eventually offered a bounty. The attacker returned the funds. By April 3, 2023, the team confirmed recovery of roughly $240 million in total assets [2]. That outcome is unusually good for DeFi. Most exploited funds are never returned, and a treasury cannot plan around getting this lucky. Nobody watching Euler on March 13 could have known in advance that this particular attacker would negotiate.
A smaller total in 2023 hides a faster, more automated attacker
Total DeFi losses actually fell sharply in 2023. They dropped from more than $3.1 billion in 2022 to $1.1 billion, a decline of roughly 64% [1]. That sounds like the danger receding. Read the second number instead. The count of individual hacking incidents rose in the same period, from 219 in 2022 to 231 in 2023 [1]. Fewer dollars, more attempts. Exploits are getting cheaper to run and easier to automate. That is exactly the environment a manual, human-in-the-loop response is worst suited to.
A treasury holding funds across several vaults cannot realistically assign a person to watch each one around the clock. Nobody can read every audit disclosure the moment it posts and still act inside the minutes an exploit like Euler's takes to run. That gap, between how fast an exploit moves and how fast a human notices, is exactly the gap a DeFi circuit breaker is built to close.
How Treasury Auto-Defense applies the pattern
Treasury Auto-Defense reuses the same owner-signed session grant that powers SpendTheBits' auto-sweep feature for idle balances. It scopes that grant narrower on-chain: the grant can only withdraw funds back to the account's own address, never to any other destination. When a vault's Yield Safety Score drops past the threshold you set, the position exits to liquid USDC, and you get an alert explaining why. No grant means no automatic exit. The feature falls back to alert-only, which still tells you something is wrong even when it cannot act on your behalf.
The full mechanics of how Treasury Auto-Defense works live in the help article. The short version: it reuses the same bounded-grant model already used for Earn withdrawals, so adding this feature does not open a new custody surface. Everything sits inside the Earn screen alongside the vaults it protects, and the security page covers how the underlying session key is stored and revoked.
What a DeFi circuit breaker cannot do
It cannot restore funds already lost before the score dropped. Euler's attacker moved $197 million before any external signal existed to react to [2]. It cannot substitute for diligence on which vaults you deposit into in the first place. A newly listed vault with a thin track record starts with a lower score for a reason, and no automation replaces reading why. It is also opt-in. Without an active session grant, Treasury Auto-Defense can only notify you, not move funds, because the whole design deliberately avoids giving any party standing custody over your assets.
A DeFi circuit breaker also cannot outrun every exploit shape. It reacts well to a slow-building risk, like a vault losing liquidity depth over several days. It reacts more slowly to a single-block flash-loan attack that finishes before the next score recalculation runs. Euler's own exploit fits that second, harder case. The drain happened inside one transaction, faster than any external monitor, ours included, could plausibly intervene mid-attack.
Building defense in depth around a circuit breaker
A circuit breaker is one layer, not the whole strategy. Preferring vaults with a higher Yield Safety Score in the first place removes exposure before a breaker is ever needed. Spreading a treasury across more than one vault means a single exploit, even a total loss like Euler's, caps the damage to one slice of the balance rather than all of it. Reviewing the score's five inputs on a regular basis, rather than only after an alert fires, catches the slow decline a threshold trigger is built to catch anyway, just earlier.
None of this is unique to crypto. Every risk framework in finance layers a fast, blunt, automated response underneath slower, more deliberate human judgment: position sizing, diversification, due diligence. DeFi just runs at a different clock speed. That is why Euler's $197 million moved in under an hour [2], and why any tooling built to watch for the next one has to run at machine speed too. A stock exchange's circuit breaker halts trading for fifteen minutes at a time [3]. A DeFi circuit breaker does not get even that long.
The honest limit of an automated defense
A DeFi circuit breaker changes what a bad afternoon looks like. It does not change the base rate of exploits happening across DeFi, and it will never be able to guarantee that. What it can promise is narrower and more useful: given a measurable signal and a threshold, it reacts faster than a person checking Discord ever will, every single time, without needing to be awake.
That is the entire pitch. Treasury Auto-Defense will not have saved Euler Finance from a single-transaction exploit that outran every external monitor watching it. It will catch the slower, more common failure mode: a vault's fundamentals deteriorating over days while nobody happens to be looking. Most losses look like the second case, not the first. That is reason enough to build the circuit breaker, even knowing exactly what it cannot do.
In the app · 5 steps
Put a circuit breaker on your yield in SpendTheBits
Auto-Defense watches every Earn position. It works in two modes: it can alert you, or, with a session grant you sign, it can also exit the position.
Deposit through Earn
Every vault you hold is listed under Your positions. Auto-Defense watches each position's Yield Safety Score from the moment it exists.

Review the defence threshold
Open Earn settings, using the gear on the Earn screen, and check the score at which a position counts as breached.
Choose alert-only or automatic exits
The automatic exit needs a signed auto-sweep session that can only withdraw to you. On mainnet today the app runs alert-only and labels the sweep armed but not live yet, so plan to act on the alert yourself.
Make sure the alert can reach you
Keep notifications on for SpendTheBits. Suggestions and warnings also collect on the Insights screen, so nothing is lost if you miss a push.

Confirm the exit in Activity
A withdrawal, whether triggered by you or by a session, shows in Activity as a normal Earn transaction with its own on-chain hash.

Hold your own keys, keep the yield, skip the middleman.
SpendTheBits is a fully non-custodial wallet for 13 chains, free on iOS and Android.

