EyeOnTheSky's $68.5K Loss and How Olympix Would Have Prevented It
At 23:31:42 UTC on November 29, 2026, a brand-new wallet on BNB Chain sent its very first transaction. It deployed a contract, and before that contract had finished being created, the EyeOnTheSky (EOS) PancakeSwap pool had paid out 124.702548 WBNB and was left holding 1 wei. Nobody borrowed anything, no price feed was touched, and the pair contract followed its own rules to the letter. The money came out because EOS kept two sets of books and its burn function wrote to the wrong one.
EyeOnTheSky is a reflection token on BNB Chain, and its main market is an EOS/WBNB pair on PancakeSwap. SlowMist's alert put the loss at about $68.7K and traced it to the token's _burn() function, which subtracted a token-unit amount from reflection-unit storage and never touched the reflection total. Valuing the 124.702548 WBNB at CoinGecko's BNB price for the hour before the attack gives $68,531, the figure used here. As of November 30, 2026, EyeOnTheSky hadn't published a statement or post-mortem, and none of the WBNB had come back.
Two Ledgers That Have to Agree
Reflection tokens pay holders passively. Instead of sending fee rewards to every wallet, they keep balances in an inflated internal unit, reflection units, and convert to the visible token amount with a single exchange rate: the total reflection supply divided by the total token supply. In EOS, _rTotal and _tTotal hold those two totals, _rOwned holds each wallet's reflection balance, and balanceOf() returns _rOwned divided by the current rate. When a fee is reflected, the contract shrinks _rTotal, the rate drops, and every holder's visible balance ticks up a little.
That design rests on one bookkeeping rule. Any change to the token supply has to move both totals together, scaled by the rate, and any change to a wallet's reflection balance has to be made in reflection units. EOS's fee path follows the rule. Its _reflectFee() helper reduces _rTotal by the reflected, burned and community amounts in reflection units and reduces _tTotal by the burned amount in token units, so the rate moves only by the intended reward.
The Burn That Kept the Wrong Books
The public burn() function is a different story. Anyone can call it, and it passes straight to _burn(). The verified EOS source on Sourcify shows the whole function:
Every line treats _value as if it lived in both unit systems at once. The require compares a token amount with a reflection balance, and because reflection balances are astronomically larger than token balances, it barely constrains anything: a wallet holding a tiny visible balance passes the check for an enormous burn. The next line subtracts that token amount from the reflection balance, which removes a rounding error's worth of the wallet's real position. The third line takes the full amount out of _tTotal. Nothing touches _rTotal.
The result is a burn that shrinks the denominator of the exchange rate without shrinking the numerator. Every reflection balance in the system is suddenly worth far fewer visible tokens, including the balance of the PancakeSwap pair, which never took part in the burn at all. The function that was meant to destroy the caller's tokens instead rewrites what everyone else owns.
One Transaction, Start to Finish
The attacker's wallet, 0x0afC...7311, had never sent a transaction before. Its first one deployed a contract at 0x3d2f...042b, and the whole attack ran inside that contract's constructor. The EOS that got burned sat in 0xc716...90a7, a wallet that's been on-chain since 2021 and now runs EIP-7702 delegated code, and the attack contract had that wallet call burn() twice.
The first burn destroyed 692,849,680,681,943.412647198 EOS. With EOS's 700 trillion token supply on the books, that cut _tTotal by about 99 percent in one call, to roughly 7.15 trillion EOS, while _rTotal stayed where it was. The pair's reported EOS balance collapsed with it, and a sync() on the pair locked that number in: the Sync event records an EOS reserve of exactly 1 base unit against 124.702548 WBNB.
The second burn removed just 3 base units of EOS. According to SlowMist, it raised the pair's reported balance without any EOS moving, and the chain shows how far: the pair's balance went from 1 base unit to about 6.82 trillion EOS. PancakeSwap's swap() works out what a trader paid in by comparing the pair's current balance with its stored reserve. It saw roughly 6.82 trillion EOS of apparent input against a reserve of 1, the constant-product check passed comfortably, and the pair released 124.702548070145220571 WBNB to a helper contract at 0xa69f...d371. That contract unwrapped the WBNB into BNB in the same transaction, and the final Sync left the pool with 1 wei of WBNB.
Total cost to the attacker was a transaction fee of about 0.00016 BNB. The victims were the liquidity providers in the EOS/WBNB pair, whose WBNB side was emptied.
A Familiar Exit, a New Entrance
The last step is a well-worn route. Push a PancakeSwap pair's recorded reserve down to almost nothing, then make its balance read higher than that reserve, and swap() will pay out the difference. It's the same endgame that let 0.85 TMM buy 272 million USDT in TMM's roughly $1.7M loss in April. What's different here is the entrance. EOS never moved tokens out of the pair or called a privileged hook. It only had to make the pair's balance wrong, and a short burn function that mixed two units of account was enough to do it from an unrelated wallet.
That's also why the bug could sit unnoticed. In everyday use, nobody burns EOS in amounts large enough to matter, so the rate drift from each burn stays invisible. The flaw only shows itself when someone deliberately burns most of the supply in one call, and the contract's own require doesn't stand in the way.
How Olympix Would Have Caught the Unit Mismatch
Olympix reads a contract as states, transitions and entry points, and in a reflection token the state that matters is the coupling between _rTotal, _tTotal and every _rOwned entry. Static analysis would have surfaced the signal here: _reflectFee() changes both totals in step, while _burn() writes to _tTotal and to a reflection balance using a token-unit value and never assigns _rTotal. A function that updates one side of a ratio that every balance depends on, from a public entry point with no access control, is exactly the kind of path the engine narrows toward.
From there BugPoCer would have worked from the system outward. The invariant is written into balanceOf() itself: a holder's visible balance should change only when that holder sends, receives or earns a fee, and the visible balances should keep adding up to the supply the contract reports. BugPoCer searches for a sequence of calls that breaks a rule like that. Had the team run it on EOS, a single burn() from an outside wallet would have broken it, since the pair's balance drops without the pair doing anything. Extending the search through the PancakeSwap pair, BugPoCer would have returned the full sequence as a counterexample: burn, sync, a second small burn, then swap. That would have been the November 29 drain, produced in development, with the minimal conditions that trigger it and a generated Forge test that replays it.
Because these checks run at every merge and before release, a bug like this would have shown up the first time anyone touched _burn(), long before the token had a pool worth draining.
Lessons for Reflection Token Builders
Dual-unit accounting gives every supply change two places to be wrong. Any function that burns, mints or reflects has to move _rTotal and _tTotal together, convert amounts with the current rate before touching _rOwned, and compare like with like in its checks. Burns deserve the most suspicion, because they're often added late, called rarely, and left public. It's also worth testing what happens to the pool when a stranger calls each public function with an absurd amount, since that's the first thing an attacker will try.
If you're shipping a token with more than one unit of account and want to see how Olympix maps every path that touches its supply math, book a technical walkthrough.
On-Chain References
Exploit Transaction: 0xd5a6...79fd
Attacker EOA: 0x0afC...7311
Attack Contract (created in the exploit transaction): 0x3d2f...042b
Vulnerable Contract (EOS Token): 0x6b9f...6a7e
Victim Pair (EOS/WBNB): 0x8835...4b36
Burning Wallet (EIP-7702 Delegated): 0xc716...90a7
WBNB Recipient Contract: 0xa69f...d371
More post-mortems
See every post-mortem →See what Olympix finds on your own code
Send us a repo that's already been audited, and we'll run Olympix at the same commit and show you what comes back.




