OLPC's owner set an unbounded decimalsValue that the token's transfer hook used to burn an amplified multiple of value out of a Pancake pair on every skim, collapsing its real OLPC balance until a final transfer and sync left an 8.1 OLPC surplus that a zero-stated supporting-fee swap read as a deposit and paid out in LABUBU. DeFiHackLabs puts the loss at 1,115,903.66 USDT, a figure DeFiLlama's hacks database corroborates at roughly $1,100,000.
Security ·
Logged as “2026-06-20: Olpc Pair Reserve Manipulation on OLPC”.
OLPC is a BNB Smart Chain token paired against LABUBU on PancakeSwap V2, at the pair address 0xedB7DCB4cDFEc957F8Df5cBf5E94229a6CC9F365. OLPC's token contract, at 0x58815CDF9955121a6274680ab396a36FC9e00000, is verified on Sourcify, and its source confirms the root cause beyond DeFiHackLabs' proof of concept. An onlyOwner function called setDecimalsValue writes any uint256 straight into a state variable named decimalsValue, with no range check at all. That variable is read inside the contract's _update hook: whenever OLPC moves out of the swap pair to an address that is not tax exempt, the hook burns value * decimalsValue from the pair's own balance and sets the delivered amount to zero. At BSC block 96,479,712, on 5 May 2026 at 08:19:47 UTC, OLPC's owner set decimalsValue to 7,326,680,472,586,200,649, a figure with no bound checked against it either in the setter or anywhere downstream.
The code shows why that hook matters to PancakeSwap's own housekeeping calls. skim(), the pair function that sweeps any token balance above its recorded reserve to a chosen address, moves tokens out of the pair exactly like a sale, so it triggers the same burn. The reconstructed attack, run against a fork at block 105,326,392, used this twenty times in a row: call sync() to reset the recorded reserve to the current balance, send a small amount of OLPC into the pair, then call skim() toward 0xc0F1Ef7FE2ae3AAD0175af192713d36eD151755a, which burns the dust multiplied by decimalsValue straight out of the pair. The PoC's own helper function sizes each round's dust so that the skim-triggered burn removes close to nine tenths of the pair's remaining OLPC, and it divides the dust by ten each round as the pool shrinks. The effect across the loop is a pair whose real OLPC holdings keep collapsing while its recorded reserve, reset at the start of each round, trails one step behind. A final sync() lines reserve and balance up exactly, and a last transfer of 9 OLPC into the pair then lands there at only 90 percent of face value after OLPC's 10 percent sell tax, leaving the pair holding about 8.1 OLPC more than the reserve its own getReserves() still reports.
That surplus is what the attack actually spends. A bridge-style swap wrapper, called PancakeSwap's swapExactTokensForTokensSupportingFeeOnTransferTokens with a stated input of zero. That function, built for tokens that take a fee on transfer, computes its real input as the pair's current balance minus its last recorded reserve rather than trusting the caller's number, so it read the 8.1 OLPC surplus as a genuine deposit and paid out LABUBU accordingly, to a proxy contract the wrapper controlled. LABUBU's own verified source levies a 10 percent sell tax split between a burn and a distributor address, plus a further burn-only tax tied to how far price has slipped from its 24-hour low, which the PoC models as summing to 18.05 percent for this trade; the surviving LABUBU was then swapped through WBNB into USDT and credited to the attacker, at 0x18d6c39ae9e537f948aa2212d44d8c23944fc188.
The attack transaction's on-chain record confirms the date and the attacker independently of both PoC authors: block 105,326,393, timestamped 2026-06-20T11:31:03 UTC, a call from 0x18d6c39ae9e537f948aa2212d44d8c23944fc188 to itself carrying one zero-valued argument, consistent with the amountIn-of-zero step the PoC describes. DeFiHackLabs states the loss at 1,115,903.66 USDT. DeFiLlama's hacks database lists the same incident as "LABUBU/OLPC" on BNB Smart Chain, dated 20 June 2026, classified under "Token & Share Accounting" with technique "Decimal Miscalculation," and puts the loss at approximately $1,100,000, a separate figure that lines up with DeFiHackLabs' total rather than the PoC test's looser assertion of a profit above 1,000,000 USDT-equivalent.
Several other entries on this site describe the same family of bug: a Pancake pair whose recorded reserve is forced away from its real balance via skim()/sync(), then a swap that trusts the pair's state. The closest match is AIC's pair-skim, reserve-mismatch exploit, which used fee-on-transfer tokens and public skim()/sync() leveraged through a flash swap, rather than OLPC's owner-set decimalsValue burn hook; BYToken's permissionless autoburn and WHALE's transfer-accounting desync are further variations on the same flaw.
No statement from either OLPC's or LABUBU's team acknowledging the drain, pausing trading, or compensating holders has surfaced. The fix specific to this code is to stop a transfer hook from burning a multiple of value out of the pair itself whenever the pair is the sender, since that turns every routine skim() into an amplified burn once an owner sets the multiplier high enough; a hook that only taxes transfers initiated by outside addresses would not have this effect. On the Pancake side every token in this family depends on, a supporting-fee swap that infers its input from a pool's balance change alone will accept whatever that balance happens to be, however it got that way, which is exactly what let a stated amount of zero stand in for 8.1 real OLPC.
Query every incident yourself — free, no signup
Updated 9 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.