Midas Capital Hack

Reported loss $600K
BNB Chain
Redeem Rounding Error Exploit

What happened

On June 17, 2023, Midas Capital's permissionless Ankr/Helio isolated pool on BNB Chain was exploited through a redemption-rounding flaw. Midas's post-mortem describes $340,000 drained from that pool, while Rekt reported a $600,000 loss; the sources do not reconcile the different figures. Midas paused the protocol, contacted authorities, and offered a bounty for return of funds.

How it happened

  1. The attacker reduced the HAY/BUSD market's cToken supply to 1001 wei, then donated LP tokens to the market.
  2. Flash-loaned collateral and borrowed assets were used to create additional HAY/BUSD LP tokens, which were also donated.
  3. A redemption fraction of 1.998 wei was rounded down to 1 wei, allowing an outsized LP-token withdrawal.
  4. The attacker repeated the rounding path and used self-liquidation to seize and redeem the remaining LP tokens.

Protocol details

Classification Protocol Logic / Borrowing and Lending / Token & Share Accounting
Protocol Type Lending
Implementation language Solidity

Security review history

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.