Smart Contract Circuit Breakers: ERC-7265 and Rate Limits
Part of our guide to onchain monitoring

Quick answer. ERC-7265 proposes an interface for a circuit breaker smart contract that lets DeFi protocols reject or hold covered outflows. An enforced rate cap can reduce what leaves before responders act, but it does not fix the underlying flaw.
Video transcript
An outflow limit can cap total covered withdrawals until responders contain the incident. A queue alone only delays payouts.
In this example, all covered payouts debit one bucket. With fixed settings and no overrides or extra credits, a full bucket of one hundred ether refilling at twenty per hour allows at most one hundred forty ether over two hours.
E R C seven two six five is an unmerged proposal for an interface that lets integrators reject or hold covered outflows when a threshold trips.
Nekodex Playground was a twenty twenty-four O P Mainnet test with virtual collateral. Records confirm contract creation, not active enforcement.
Taiko Labs says an unpaid withdrawal of nine hundred ninety-nine ether used nearly all the initial ether quota. Quotas constrained ether and Taiko token payouts, but some uncapped assets were drained in full. A separate emergency pause stopped withdrawals.
Revert if users can safely retry. Propagate the payout revert when the action and payment must succeed together. Queue only if you can record the claim, reserve its backing, and check the earliest payout.
Trace each payout to its bucket. Replay legitimate peaks, then drill the pause and measure how long it takes to confirm containment, not just get an alert.
Read the full guide for the checklist, or talk to Guardian about routing your alerts and deciding who takes the first response step.
What Rate Limits Bound
A token bucket starts with a spendable allowance. Each covered outflow uses capacity, which refills at a configured rate.[1]
For one continuously refilling bucket, covered releases over time T are at most B + r × T, where B is capacity and r is the refill rate.
The bound uses a full starting bucket as the worst case. It assumes unchanged settings, no overrides or extra credits, and that every counted release debits that bucket.
Say a vault starts with 100 ETH of capacity and refills at 20 ETH per hour. Over two hours, covered releases cannot exceed 140 ETH.
Budget independent buckets together if they draw from the same reserves. A per-transaction ceiling alone does not cap the combined outflow.
An inline limiter can reject an over-budget withdrawal without waiting for a signer. OpenZeppelin's Pausable stops guarded operations once paused, regardless of their size.[2]
A governance timelock delays scheduled changes rather than automatically queuing over-limit withdrawals. For what to stop and who can restart it, see Pausable Contract Design.[3, 4]
How ERC-7265 Works
The authors opened the pull request on July 3, 2023. An editor closed it without merging on October 25, 2023, during the repository split.[5, 6]
The official ERC index had no entry for 7265 on November 26, 2026. It is a design reference, not a feature of the Ethereum network.[7]
Protected contracts report inflows and transfer covered outflows to the shared breaker. For immediate settlement, the breaker forwards funds to the recipient.
Native assets use separate hooks. While the breaker is operational, unregistered assets pass through without rate limits.
The draft recommends percentage-based limits but leaves the metric open. Neither a share of total value locked nor a token bucket is mandatory.
While a limit is active outside a grace period, the integrator chooses whether a covered outflow reverts or the breaker holds funds and records a claim. Claims cannot execute while limited or nonoperational.
The draft lets the admin change parameters and set grace periods. The admin can recover held funds once the breaker is marked nonoperational.
ERC-7265 Adoption and Alternatives
Nekodex's Playground test docs described a multisig-controlled limiter derived from ERC-7265. The design set a percentage-of-TVL budget and reverted covered requests above remaining capacity.[8]
Perpetual Protocol's Lugia development code credits the draft's reference implementation.[9]
The v1.1.1 manifest and receipt record the breaker's creation on OP Mainnet on April 29, 2024 (UTC).[10, 11, 12, 13]
Nekodex dates Playground to May 2024 and describes it as a mainnet test. The manifest lists only Nekocoin, the project's virtual collateral.[14, 15]
The setup script calls for separate steps to authorize the vault and register its collateral.[16]
In v1.1.1, asset registration emits an event, but vault authorization does not. Neither the creation receipt nor the test script's assertions verify active enforcement in Playground or wider ERC-7265 adoption.[17, 18]
On December 25, 2025, Perpetual Protocol announced plans to sunset Nekodex. The thread said trading would end after final rewards on December 29 (UTC+8).[19]
For any deployment, verify the active implementation, protected callers, registered assets, limits and overrides.
Other designs answer different questions. Chainlink CCIP documents separate inbound and outbound token buckets for each token pool's connection to another chain.[1]
A 2023 grant application proposed ERC-7265 work for Balancer. Balancer V2's documented Managed Pool breaker checks token-relative pool share prices instead of metering cumulative withdrawals.[20, 21]
An Ethereum Magicians commenter flagged a gap: the draft defines an event for registering an asset, but not one specific to updating its limits.[6, 22]
The draft does not require a delay before the admin overrides a rate limit. Include that immediate override authority in the threat model.
What Taiko Actually Contained
Taiko's bridge attack began on June 21, 2026 UTC. In its July 23 postmortem, Taiko Labs reported about $1.75 million in gross releases.[23]
The figure includes an 18 ETH relayer fee that did not reach the attacker. It excludes withdrawal claims that never paid out.
Taiko says one unpaid 999 ETH withdrawal attempt consumed nearly all of the initial 1,000 ETH allowance. Further ETH releases were constrained by the refill.
That refill was about 41.7 ETH per hour. The quota also constrained TAIKO outflows, while some assets with no configured limits were drained in full.
Taiko says block proposals stopped around 02:11 UTC on June 22. A separate emergency pause stopped bridge and vault withdrawals at 05:40 UTC.
This is evidence of partial containment, not a measure of how much the quotas saved. Size each asset's budget without assuming a failed payout uses it.
Revert or Delay Settlement
Choose a revert if users can safely retry, and propagate the failure when the parent action and payout must succeed together. A caller that catches the error can continue.[6, 24]
The EVM discards state changes and logs from the reverted call and its subcalls. A breach log emitted inside that call will not survive.[25]
Confirm failed withdrawals from transaction status or call traces, as appropriate. Confirm a breaker trip from committed state.
A revert can block a time-sensitive position close. Queue only if the integration can complete the position change and account separately for the unpaid claim.
Guardian's public Veranta V2 review found that a withheld payout left no onchain claim and no reservation against liquidity provider redemptions (L-05).[26]
Record the liability and reserve its backing. Test that the final payout goes to the recorded recipient and a claim cannot settle twice.
Flying Tulip's Perpetual PUT withdrawals can revert above capacity, while ftUSD queues over-capacity requests to nonexempt recipients. Anyone can execute an eligible payout to its recorded recipient.[27, 28]
Its CBv2 guide gives a six-hour default delay. A guardian can pause entries, and an operator can shorten an entry's delay to zero.
Design around the earliest possible payout, not the default delay. A queue alone sets no release budget once claims mature, so test a backlog that becomes payable at once.
When to Use One
An inline limit must serve legitimate peaks and keep outflows within your exposure budget before containment. Measure time through confirmed containment, not the first alert.
If those targets conflict, segment risk by market, shorten response time, or delay flows that can tolerate it.
Guardian's public LayerZero reports describe how OneSig on Canton recorded aggregate usage under old settings (Remediation Review 1 M-02). Reconciling a pending outflow under new settings could then overstate or understate remaining capacity.[29, 30]
For Web3 MDR, define which large fund movements and configuration changes warrant review. Before enabling automated pauses, grant the necessary authority and test the pause path.
- Trace each redemption, bridge release and batch payout to the bucket it debits. Document every intentional exemption.
- Replay peak legitimate demand and measure queued or rejected payouts. Include time-sensitive actions such as liquidations.
- Change capacity and refill settings with payments pending. Verify that each settlement or reversal adjusts usage exactly once.
- Drill a trip and a pause. Alert on queue growth, depleted capacity and live parameter changes.
Plan the Breaker Response
Talk to Guardian about routing your existing alerts into Web3 MDR and agreeing who handles the first response step.
Frequently Asked Questions
Can anyone clear a tripped ERC-7265 breaker?
Under the draft, anyone can call the expiry override when cooldown ends. Do not treat cooldown as a promise that an operator must approve reopening.[6]
Can an asset with low liquidity trip the breaker?
Not below its configured minimum liquidity floor. The draft requires a registered asset below that floor to be restricted once another asset triggers the breaker.[6]
Can an app promise that a withdrawal will settle immediately?
Not from a capacity read alone. Flying Tulip's guide notes that other transactions can consume capacity before execution. Show users the current estimate, not a guarantee.[28]
Related reading
- What Is Web3 MDR? Managed Detection and Response for Crypto
- How Fast Are Crypto Hacks Detected? Data From 30 Exploits
Sources
- Chainlink: Chainlink CCIP: Rate Limit Management Overview
- OpenZeppelin: OpenZeppelin Contracts 5.x: Pausable
- OpenZeppelin: OpenZeppelin Contracts 5.x: TimelockController
- Guardian: Pausable Contract Design: Roles, Scope and Who Can Unpause
- Ethereum EIP editors and contributors: Add EIP: Circuit Breaker, pull request 7265
- ERC-7265 proposal authors: ERC-7265 Circuit Breaker: draft specification
- Ethereum ERC editors: Ethereum ERC registry: all documents by status
- Nekodex: Nekodex Playground: Perp v3 Technical Overview
- Perpetual Protocol: Perpetual Protocol Lugia circuit breaker source code
- Perpetual Protocol: Perp v3 v1.1.1: OP Mainnet deployment manifest
- Perpetual Protocol: Perp v3 v1.1.1: Optimism CircuitBreaker deployment receipt
- Optimism: Superchain Registry: OP Mainnet chain configuration
- Optimism: OP Stack specification: L2 chain derivation
- Nekodex: Nekodex Spot Trading is Live!
- Nekodex: Nekodex Playground: Mainnet test and collateral FAQ
- Perpetual Protocol: Perp v3 v1.1.1: Optimism CircuitBreaker setup script
- Perpetual Protocol: Perp v3 v1.1.1: CircuitBreaker registration code
- Perpetual Protocol: Perp v3 v1.1.1: OP Mainnet configuration checks
- Perpetual Protocol, mirrored by Teapawt: Perpetual Protocol's December 25, 2025 sunset thread
- TurtleShell, via the Balancer governance forum: Grant proposal to implement EIP-7265 for Balancer
- Balancer: Balancer V2 Managed Pools: Circuit Breakers
- Fellowship of Ethereum Magicians: EIP 7265: Circuit Breaker Standard discussion
- Taiko Labs: Taiko Security Incident: A Postmortem and Next Steps
- Solidity: Solidity documentation: reverts and exception handling
- Ethereum Improvement Proposals: EIP-140: REVERT instruction
- Guardian: Guardian Veranta V2 Review: withheld payouts and pull breaker coverage
- Flying Tulip: Flying Tulip Circuit Breaker documentation
- Flying Tulip: Flying Tulip Circuit Breaker v2 integration guide
- Guardian: Guardian LayerZero OneSig on Canton Review: rate-limit accounting
- Guardian: LayerZero audit reports by Guardian
- Cointelegraph: Andre Cronje says DeFi is no longer DeFi as builders debate circuit breakers
- Taiko Labs: Taiko Ethereum mainnet contract deployment and upgrade logs
- ETHBEAT: Taiko Alethia: Liveness and incident history
- Metaverse Post: Taiko Loses $1.7M In Bridge Exploit, Suspends Block Production And Freezes Withdrawals
- L2BEAT: L2BEAT Taiko incident update: contract state diff
- Cointelegraph: Taiko Fully Restores Network After Bridge Exploit
- Perpetual Protocol: Perp v3 v1.1.1: Optimism deployment configuration
- Guardian: Smart Contract Audit vs Continuous Security Monitoring
- Guardian: What Is Web3 MDR? Managed Detection and Response for Crypto
- Guardian: Guardian Announces Managed Security
- Guardian: How to Monitor Smart Contract Events and Catch Exploits