Bunni cites smart contract rounding error for $8.4 million flash loan exploit
Quick Take Bunni said the attacker launched a flash loan attack that exploited a rounding error in a smart contract. The lost $8.4 million has already been funneled through Tornado Cash, while Bunni is offering the attacker 10% of the stolen funds in exchange for returning the remainder.

Decentralized exchange Bunni published a post-mortem report on the exploit that resulted in $8.4 million in losses on Tuesday.
According to the report , the exploit affected two pools — the weETH/ETH pair on Unichain and the USDC/USDT pair on Ethereum mainnet.
Bunni identified an issue with the rounding direction in the smart contract for updating idle balances during withdrawals as the root cause of the exploit.
"The key to the exploit was the erroneous liquidity decrease resulting from the tiny withdrawals," the report said. "It stemmed from this line in [BunniHubLogic::withdraw()] that handles the pool's idle balance update."
The attacker exploited this error to launch a flash loan attack that manipulated pool prices and liquidity, Bunni added.
First, they borrowed 3 million USDT via a flash loan and performed multiple swaps to manipulate the price, reducing the available USDC to just 28 wei. The attacker then exploited rounding errors with 44 small withdrawals, further draining the USDC balance and disproportionately dropping the pool's total liquidity.
In the final step, the attacker executed a large swap to inflate the price tick and then performed a reverse swap at the manipulated price, the report said.
"To summarize, all of the rounding directions involved were safe in isolation, but when multiple operations are involved they led to an exploit," said Bunni, adding that it has updated the rounding code to fix the vulnerability.
The platform has resumed withdrawals across all networks following fork testing by blockchain security firm Cyfrin, which confirmed their safety. However, deposits, swaps, and other functions remain paused.
"We are still exploring what fixes are needed to make Bunni secure again," the platform said. "Changing the rounding direction of idle balance updates stops the current exploit, but it’s unclear if this change will introduce new attack vectors."
The Bunni team said it traced the stolen funds to two wallets but could not identify the attacker as funds were funneled through crypto mixer Tornado Cash. Bunni is offering the attacker 10% of the funds as a bounty for returning the remainder, while also working with law enforcement and requesting centralized exchanges to freeze related accounts.
Looking ahead, Bunni said it will further develop its testing framework to fully restore the platform.
Disclaimer: The content of this article solely reflects the author's opinion and does not represent the platform in any capacity. This article is not intended to serve as a reference for making investment decisions.
You may also like
New spot margin trading pair — HOLO/USDT!
FUN drops by 32.34% within 24 hours as it faces a steep short-term downturn
- FUN plunged 32.34% in 24 hours to $0.008938, marking a 541.8% monthly loss amid prolonged bearish trends. - Technical breakdowns, elevated selling pressure, and forced liquidations highlight deteriorating market sentiment and risk-off behavior. - Analysts identify key support below $0.0080 as critical, with bearish momentum confirmed by RSI (<30) and MACD indicators. - A trend-following backtest strategy proposes short positions based on technical signals to capitalize on extended downward trajectories.

OPEN has dropped by 189.51% within 24 hours during a significant market pullback
- OPEN's price plummeted 189.51% in 24 hours to $0.8907, marking its largest intraday decline in history. - The token fell 3793.63% over 7 days, matching identical monthly and yearly declines, signaling severe bearish momentum. - Technical analysts cite broken support levels and lack of bullish catalysts as key drivers of the sustained sell-off. - Absence of stabilizing volume or reversal patterns leaves the market vulnerable to further downward pressure.

New spot margin trading pair — LINEA/USDT!
Trending news
MoreCrypto prices
More








