Fractal Protocol's $14.8K Loss and How Olympix Would Have Prevented It
At 07:24:10 UTC on May 22, 2026, one Arbitrum transaction put 1,403,259.56 USDC.e into Fractal Protocol's USDF vault and, a few calls later, took 1,418,037.84 USDC.e back out. Nothing was re-entered and no oracle was touched. The attacker simply paid one price for the vault's receipt token and sold it back at another, and both prices came from the vault itself.
The difference, 14,778.28 USDC.e, was close to everything the vault had sitting in its liquid buffer. Defimon flagged the transaction the same day. The trick was a calendar. Fractal's vault raised its token price one day at a time, but it only caught up thirty days per call, and anyone could make the call.
A Vault That Prices Itself by the Day
Fractal's vault takes USDC.e deposits and mints USDF, a receipt token that grows in value as the vault accrues yield. Most of the deposited money is deployed to a yield reserve, and a slice stays behind as a liquid buffer for withdrawals. The vault keeps a record for every day of the year, and each record carries the day's APR, total deposits and token price.
The token price isn't read from a market. It's computed. Each new day inherits the previous day's price plus one day of interest at the configured APR. Deposits mint USDF at the current day's price, and withdrawals pay out at the current day's price, through a helper called toErc20Amount that multiplies the receipt amount by that same stored value.
That works as long as the current day in storage is actually today. The vault advances its calendar in a private function, _compute(), which deposit and withdraw both call first, and which anyone can also trigger directly through a public compute() function.
The Thirty-Day Limit
The verified Vault implementation on Sourcify shows how _compute() catches up:
The loop walks forward one day at a time and raises the price by a day of interest at each step. The break at thirty is there to keep gas bounded. Its side effect is that a vault left alone for more than a month can't reach the present in one call. Each call moves the price forward by up to thirty days of yield and stops, and the next call moves it again.
So inside a single transaction, the price isn't fixed. A caller can buy USDF while the calendar is behind, call compute() to push it forward, and sell at the newer, higher price. The interest those skipped days represent is paid out of the vault's buffer, to whoever happened to be holding USDF when the calendar moved.
One Deposit, Two Calendar Jumps, Fifteen Withdrawals
The transaction's logs lay the attack out in order. The attacker's EOA called an attack contract that had gathered about 1.4 million USDC.e from Aave V3, Balancer and several Uniswap V3 and Algebra pools. The vault emitted one OnCompute event, then accepted the 1,403,259.56 USDC.e deposit and minted 1,116,394.24 USDF, a price of about 1.257 USDC.e per USDF.
Two more OnCompute events followed with nothing in between, the attacker calling compute() twice to advance the vault's calendar by up to sixty more days. Then came fifteen withdrawals. Each one was capped by the vault's own rule that a single withdrawal can't exceed 10% of total deposits, which is why the amounts shrink from 295,638.24 USDC.e on the first call down to 4,149.18 on the last. Each paid out at the advanced price, and each sent a small flat fee to the vault's fee address.
Across the transaction the vault received 1,403,259.56 USDC.e and paid out 1,418,037.84, a net drain of 14,778.28 USDC.e. Of that, 709.01 went to the fee address and 14,069.27 to the attack contract. The flash liquidity was repaid in the same transaction.
Why It Looked Safe
The vault was not careless. Deposit and withdraw each carry a reentrancy mutex, deposit checks the actual balance change after transferFrom, withdraw checks the buffer and caps each withdrawal, and the owner-only setTokenPrice limits manual changes to 1% every 24 hours. Every one of those guards held.
None of them covers the idea that the price can be moved by an outsider between a deposit and a withdrawal. Each function, read on its own, prices at the current record, which is correct for that call. The flaw lives between calls: a permissionless function that changes the price, a catch-up limit that leaves the price stale for long stretches, and no rule tying a withdrawal to the price at which the shares were bought.
How Olympix Would Have Caught the Moving Price
Olympix reads a contract as states, transitions and entry points, and infers invariants from the code and its context. In this vault the state that matters is the per-day record, especially tokenPrice, together with the USDC.e buffer and USDF supply. The transitions are deposit, withdraw and compute(), and all three are reachable by anyone.
The invariant follows from what the vault promises. Within one transaction, a caller who deposits and then withdraws the same USDF shouldn't leave with more USDC.e than they put in, minus fees. Accrued yield belongs to holders across time, and no single call sequence should be able to collect a month of it on demand.
Static analysis would have surfaced the signal: a public function that writes the price used by both mint and redeem, and a bounded loop that can leave that price behind the clock. From all the paths through the vault, the engine narrows to the feasible ones and then to the ones that touch the price between a mint and a redeem.
BugPoCer starts from an invariant like that and searches outward for a sequence that breaks it. Had the team run it on the vault, it would have returned the sequence the attacker used, deposit, compute(), compute(), withdraw, as a counterexample. The minimal conditions are a calendar more than thirty days behind and a deposit large enough to clear the withdrawal caps, and the generated Forge test would replay it on a fork. That test would have been the May 22 drain, produced in development, and because the engine runs at every merge and before release, it would have appeared as soon as the thirty-day break went in.
Keep Price Updates Out of the Caller's Hands
The fix is a design choice more than a patch. Either catch the calendar up fully before any mint or redeem, or block deposits and withdrawals while the price is behind, or price withdrawals so that a share bought in a transaction can't redeem at a price set later in that same transaction. Any vault whose share price an outsider can advance needs one of those rules.
To see how Olympix would map those paths in your own contracts and return a runnable counterexample for every break, book a technical walkthrough.
On-Chain References
Exploit tx (07:24:10 UTC, block 465420021): 0x20db...e10f
Attacker EOA: 0xE2Ac...e39a
Attack contract: 0x4351...c8da
USDF vault (proxy): 0x80e1...2a09
Vault implementation: 0x038c...7da7
USDF receipt token: 0xae48...b987
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.




