Whalebit's CES staking levels priced deposits and withdrawals off a spot-price oracle that, per DeFiHackLabs, was moved by trading in an Algebra pool, letting an attacker depress the price mid-transaction and redeem staked positions for more CES than was locked. DeFiHackLabs reports an 824K USD loss; the attack transaction is independently confirmed on Polygonscan.
Security ·
Logged as “2026-03-31: Algebra Spot Price Oracle Manipulation on WhalebitOracleManipulation”.
Whalebit ran a CES staking system on Polygon through a proxy at 0x40465755EB5846d655bBcC8C186A477469f9Ce36, where depositing into a numbered "level" locked a fixed amount of CES, priced by a levels contract at 0x1CaeFc860308b58D0B5Bb643d75c807c6a9d3a63, and withdrawing paid back a CES amount read from the same contract's live balance query. DeFiHackLabs' proof of concept describes the CES/USDT Algebra pool at 0xD3A9331A654444F9fe7DdbaEC6678C2Dc9113197 as the market whose price movement 'moves Whalebit's spot-price oracle', and its README entry is titled 'Algebra spot-price oracle manipulation'; the PoC reads the pool's instantaneous globalState price when setting its swap limits. The PoC does not say how the levels contract derives its pricing, or whether a TWAP exists. A position's value in CES could therefore be pushed down inside the same transaction that redeemed it.
The proof of concept reconstructs the attack as three repeated rounds rather than a single pass. The attacker first flash-borrowed the entire CES balance of a separate pool, 0x296b95DD0E8B726c4e358b0683ff0B6d675C35E9, used only as a lending source. Five disposable helper contracts each deposited into Whalebit's staking at level 12, locking a fixed CES amount read from getPriceForLevel(12). The attack contract then sold its remaining CES into the Algebra pool, driving CES's spot price down. With the price depressed, each helper called withdraw(), pulling its full staked balance as reported by the levels contract, which paid out more CES than the helper had put in, since the same locked value now converted back to a larger CES amount at the lower price. The attack contract then swapped the USDT it had accumulated back into CES through the same pool, pushing the price back up before the next round repeated the cycle. After three rounds the attacker repaid the flash-borrowed CES plus the lending pool's fee and kept the difference.
The transaction is confirmed directly on Polygonscan, timestamped 31 March 2026 at 22:56:21 UTC in block 84,938,872, one block after the PoC's fork point. It shows the attack contract, 0xb5A8d7a37D60Aa662f4Dc9b3Ef4c32A3FE21faDf, making 134 ERC-20 token transfers (83 of them in CES, totalling about 1.49 million CES) across the staking proxy and the helper addresses, consistent with five helpers cycling through deposits and withdrawals over three rounds, and at least three USDT legs in the 163,000 to 170,000 range, consistent with the price-restoration swap the PoC describes after each round. The transaction used 9.56 million of a 22 million gas limit, in line with that much repeated contract-to-contract activity in one call. The contract the PoC names as the vulnerable address, 0x9153e149b0D90DEA634ED9f7Df6ff71C2109b654, is unverified on Polygonscan and is not referenced by name among the PoC's own labelled constants, so its exact role relative to the named staking proxy, levels contract, and pricer could not be confirmed beyond what the PoC's comments already say.
DeFiHackLabs states the loss at $824,000. No second source corroborates that figure: the X post named in the README's link reference, from the account DefimonAlerts, is not independently available, and no security firm or news outlet has published an analysis of the incident.
No statement from Whalebit acknowledging the loss, pausing the staking contract, or compensating depositors was found. The fix specific to this design is to price a staking level's entry and exit the same way, from a reference that cannot move within a single transaction, such as a time-weighted average over the Algebra pool rather than its live globalState value, or to disallow withdrawal in the same block as a deposit into the level being withdrawn from.
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.