Diyahir Campos, a smart contract developer behind the new ERC proposal, sought action after falling victim to the Euler Finance hack in March.
A decentralized finance (DeFi) “circuit breaker” could have prevented billions of dollars worth of crypto from being stolen from DeFi protocols in 2022, according to the developer of the newly published ERC-7265 proposal.
A new Ethereum request for comment (ERC) was published on GitHub on July 3. In it, the lead developer Diyahir Campos proposed a standard for a DeFi “circuit breaker.” It essentially aims to set a standard for a smart contract that can halt suspiciously large token outflows from a DeFi protocol.
Last year was the single biggest year for crypto hacks, with at least $3.1 billion stolen from DeFi protocols — and cross-chain bridges accounted for 65% of that.
Speaking to Cointelegraph, Campos said circuit breakers could have prevented billions in losses.
“The ones that weren’t rugs, you could probably save 70% of the money […] with minimal impact to users.”
Campos revealed he was one of the many that lost funds in the $195 million Euler Finance attack in March, which led to contagion impacting 11 other protocols.
“Actually, I was one of the depositors in the Euler hack,” he said.
“From that experience, I’m looking at the TVL [total value locked] charts and the transactions that happened, and really it begged the question:”
“Why would you ever let 100% of your TVL leave in 10 seconds or five blocks?”
A typical DeFi protocol would see around 20% of total value locked entering or leaving a project in a day.
“Once you start talking 30% or 40%, that’s when you really start separating exploits versus daily usage,” said Campos.
The proposed standard has not been without controversy. DeFi researcher Chris Blec was among the skeptics on Twitter concerned the circuit breaker could be used for potentially nefarious purposes.
Campos said the circuit breaker isn’t suitable for every DeFi protocol and doesn’t guarantee a protocol is safe. He noted the circuit breaker would be an “opt-in thing” for DeFi projects.
He also believes that a well-designed circuit breaker must strike a balance between protecting users and preventing “false positives,” as it would be extremely disruptive whenever the breaker trips.
However, a circuit breaker would be useless in cases of internal rug pulls, as it could simply be deactivated by the team controlling the protocol.
Campos is a smart contract developer at Hydrogen Labs. He said work began on the proposed standard during an April hackathon in Tokyo alongside Meir Banks, the co-founder of Hydrogen Labs.
The idea for the DeFi circuit breaker was inspired by similar circuit breakers that have been used by global stock exchanges for decades.
“In DeFi, we aren’t trying to calm the markets, which is the intention of the [New York Stock Exchange’s circuit breaker] rather we want to prevent hack losses,” wrote Campos in a June 27 blog post.
Other developers working on the standard include Philippe Dumonet, founder and CEO of DeReg and Blagoj Dimovski, co-founder and former chief technology officer of Diagonal Fiance.
Campos said the standard is still being shaped at this stage, but is confident it will be ready “within months,” which would put it in “a really good stage” to be integrated into protocols.