OceanLifeToken Hack

Reported loss $11K
Flash Loan Attack

What happened

On April 19, 2023, Ocean Life (OLIFE) on BNB Smart Chain was exploited through a reflection-token accounting flaw. The attacker used a flash loan and PancakeSwap trades to distort the token's supply/price accounting, drained WBNB from the pool, repaid the loan, and retained 32 WBNB as reported profit.

How it happened

  1. The attacker borrowed 969 WBNB from DPPOracle and exchanged it for OLIFE through PancakeSwap.
  2. During the token transfer path, the contract internally invoked _reflectFee, reducing _tTotal.
  3. The resulting accounting mismatch made the pool's balanceOf() value exceed the amount represented by its reserves.
  4. The attacker called the pool swap path to withdraw WBNB, repaid the 969 WBNB flash loan, and sent the reported 32 WBNB profit to another address.

Protocol details

Classification Token
Protocol Type Exploit/Flash Loan Attack
Affected asset / contract OLIFE

Understand the attack patterns

Build your security review skills

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