Rounding exploit spells trouble for Magic Internet Money

Add one more hack to Immunefi’s January report tally and you have over $130 million lost in January alone


MIM and Adobe Stock modified by Blockworks


As January winds to a close, it’s looking like a rough month for DeFi safety after a score of exploits. The latest victim was, a 2021 bull market darling and issuer of the Magic Internet Money (MIM) stablecoin.

The incident caused MIM to depeg severely to as low as $0.77 on Tuesday, before recovering somewhat to $0.93 at time of writing.

Web3 security firms PeckShield and CertiK first reported the exploit, which was confirmed by Abracadabra’s X account.

Loading Tweet..

Read more: The 5 biggest DeFi hacks of 2023

A hacker was able to steal at least $6.5 million in MIM on Ethereum. The thief’s wallet was funded via Tornado Cash and following the hack, stolen MIM tokens were swapped for ether (ETH) and transferred to a pair of new wallets containing 1800 ETH and 939 ETH respectively as of 12:30 pm ET. 

A CertiK spokesperson told Blockworks the hacker took advantage of a rounding bug in the protocol, specifically “cauldron v4” contracts which were deployed in early 2023.

Cauldrons is a DeFi dapp that facilitates lending and borrowing crypto assets. Borrowed funds are tracked in two ways: Elastic, representing the actual borrowed amount which can change due to interest rates, and Base, a more stable representation of the debt, used for internal calculations.

The suspect transaction shows a sequence of steps whereby a flawed calculation allowed the hacker to inflate their share of borrowed debt.

According to analysis by CertiK shared with Blockworks, the protocol’s “rebase library,” which should synchronize the elastic and base values, failed to account for discrepancies when the elastic value was zero but the base was not.

Essentially, the attacker tricked the protocol into underestimating the debt by repeatedly exploiting the rounding error, effectively paying back far less than they actually owed.

Tracking January DeFi exploits

Looking back on the first month of 2024, bug bounty and security service Immunefi found that prior to the Abracadabra exploit, over $126 million had already been lost in January across 19 incidents.

That’s a six-fold increase from a year ago and 2.8 times greater than the losses incurred in December 2023, Immunefi said.


Most of that is attributable to the first exploit that kicked off 2024, when more than $81 million was swiped from the Orbit Bridge.

Read more: $80M lost in first hack of 2024

Hackers most often targeted Ethereum (six incidents) and BNB Chain (five incidents). Arbitrum (three incidents) and Solana had two incidents, with one exploit each on Polygon, Optimism and Conflux Network, rounding out the list.

As the value of crypto assets increases, Immunefi expects that 2024 may see the largest nominal losses of any year to date.

Read more: DeFi hackers ring in New Year with 3 attacks in 5 days

Following the attack, moderators on the Abracadabra community Discord were seeking to allay the concerns of holders of MIM. Users spoke about their concerns that the extended divergence from its expected $1 value.

“MIM has been able to overcome difficult situations transparently in the past, [and] this is another obstacle but I am a buyer given the history of the team,” wrote one member. and MIM were created by Daniele Sestagalli, a prominent, if not controversial figure in the crypto and DeFi space.

Sestagalli has also been behind DeFi protocols Wonderland and Popsicle Finance. His reputation also took a hit by association with Wonderland team member 0xSifu, who was identified as Michael Patryn of QuadrigaCX infamy. The revelation in January 2022 plunged Wonderland, built on Avalanche, into chaos.

Popsicle Finance was hacked for $20 million in August 2021. The project is technically still going, though it has never recovered from its 2021 heights and was subsequently rebranded to WAGMI, short for the crypto slogan We’re all Gonna Make It.

Start your day with top crypto insights from David Canellis and Katherine Ross. Subscribe to the Empire newsletter.

Explore the growing intersection between crypto, macroeconomics, policy and finance with Ben Strack, Casey Wagner and Felix Jauvin. Subscribe to the On the Margin newsletter.

The Lightspeed newsletter is all things Solana, in your inbox, every day. Subscribe to daily Solana news from Jack Kubinec and Jeff Albus.


Upcoming Events

Salt Lake City, UT

MON - TUES, OCT. 7 - 8, 2024

Blockworks and Bankless in collaboration with buidlbox are excited to announce the second installment of the Permissionless Hackathon – taking place October 7-8 in Salt Lake City, Utah. We’ve partnered with buidlbox to bring together the brightest minds in crypto for […]

Salt Lake City, UT

WED - FRI, OCTOBER 9 - 11, 2024

Pack your bags, anon — we’re heading west! Join us in the beautiful Salt Lake City for the third installment of Permissionless. Come for the alpha, stay for the fresh air. Permissionless III promises unforgettable panels, killer networking opportunities, and mountains […]

recent research



Aerodrome is a "MetaDEX" that combines elements of various DEX primitives such as Uniswap V2 and V3, Curve, Convex, and Votium. Since its launch on Base, it has become the largest protocol by TVL with more than $495B in value locked, doubling Uniswap's Base deployment.


If we tokenize all assets in a speculative rush, the risk of creating illiquid markets and trapped value will manifest on a large scale


Plus, Trump is headed to the heart of Bitcoinlandia with a speaking appearance at the Bitcoin 2024 conference


Meanwhile, stocks rally after Jerome Powell finishes his Capitol Hill tour


Plus, Blinks have reshaped many people’s understanding of what blockchains are capable of


Franklin Templeton has the lowest intended ETH fund fee so far, though a similar advantage did not help it win the race for bitcoin ETF assets


It’s now time for the entire Bitcoin community to recognize that Satoshi’s design transcends the confines of a single chain