DeFi Protocol bEarn Suffers $11M Flash Loan Attack

By May 17, 2021Binance
Click here to view original web page at finance.yahoo.com

It’s another day, and another decentralized finance (DeFi) flash loan exploit has reared its head. The latest victim is bEarn, which lost $11 million in stablecoins on May 16.

The Binance Smart Chain (BSC) based cross-chain auto yield farming protocol bEarn reported the incident which resulted in the draining of the bVault BUSD Alpaca strategy. A little over $10.8 million BUSD was stolen by an attacker who used flash loans to exploit the system.

bEarn Fi is a DeFi protocol that provides yield generation, an algorithmic stablecoin called bDollar, bridges, and gaming aggregation on BSC and Ethereum.

The protocol announced that it would be compensating victims of the hack along with a post mortem of events that led to the incursion.

Attack postmortem

The incident was the result of the improper implementation of the withdraw function, the report explained, adding that a mistake in using the smart contract from its launch allowed the strategy to withdraw more BUSD than needed.

The attacker took out a flash loan on Cream Finance for 7.8 million BUSD and used this to deposit and withdraw from the bVaults around 30 times. After this, the attacker withdrew 8.26 million BUSD and repaid the flash loan.

bEarn contacted Binance to get the attackers address blocked and prevent them transferring funds. It also froze all of its bVaults to prevent any further losses and contacted security firms to analyze the code. A snapshot was also taken of liquidity providers addresses in order to work on a compensation plan.

“We will create a compensation fund which will consist of a combination of the remaining saved funds, Dev Fund, DAO Fund and a portion of fees generated by the protocol.”

At the time of writing, bEarn’s algorithmic stablecoin had dumped 11% on the day and was trading well below a dollar at $0.24.

DeFi compensation funds

Users will be compensated with 87.5% of their deposits in BUSD immediately with an additional 7.5% in BDOv2 (bDollar) tokens. The final 10% will be in BDEX which will be released over time, resulting in a total recompense of 105%.

Leave a Reply

All Today's Crypto News In One Place