Not a fork. A public chain.
The three pools, the cbETH oracle and the vault, compiled by Fe 26.6.0 from this repository and deployed on Base Sepolia. The attacker's batch ran against each pool, and MIP-X43's mistake was declared against Chainlink's real feeds. Each outcome is in an event on chain, with its exact revert data, and make live reads all of it back.
From your browser, at one block, through Base Sepolia's public RPC.
The deployed vault's four previews against OpenZeppelin's ERC4626, computed here in your browser.
One batch. Three pools. One transaction each.
| Pool | Exits | Outcome | Value per BPT | Transaction |
|---|---|---|---|---|
| FaithfulPool | 51 | ✕ran, value fell | 1.0000 → 0.9662 | 0x0ecfa83e…6f9520 |
| TypedPool | 51 | ✓reverted Error("BAL#004") | 1.0000 → 1.0000 | 0xa31aece1…1231e2 |
| GuardedPool | 51 | ✓reverted Error("BAL#004") | 1.0000 → 1.0000 | 0x4dd5c6e0…fcecdc |
| TypedPool | 50 | ✓ran, value rose | 1.0000 → 1.1391 | 0xdeed2185…29bfea |
| GuardedPool | 50 | ✓ran, value rose | 1.0000 → 1.1391 | 0x90b301a1…07d18e |
The batch is the one that drains the pool rounding as Balancer V2 did, planned exit by exit against its arithmetic. On the typed pools its last exit asks for 1 of the 2 wei of osETH left. Rounded up, as an amount leaving the pool must be, that is everything the pool holds, and StableMath reverts. Without that exit, the batch raises the value behind each share. Why the rounding decides it →
Each batch ran through LiveRecorder, a Solidity contract that calls the Fe pools through an ordinary interface; the typed pools' BAL#004 reached it as an ordinary revert. Using Dimension from Solidity, JavaScript and C →
The same batch, through the same Fe kernels, in WebAssembly.
The kernels the pool contracts run, compiled by Fe to WebAssembly from the same source and run here, in this page. Play the batch, or move along it, to see each kernel's value per BPT after every exit.
Running the kernels in WebAssembly…
Every claim, read back from the chain.
- ✓holdsDid every recorded transaction succeed, in the block the record gives?21 transactions from 0x84e223Fb745B157a5f71d831634302B968129dB3, blocks 61,288,219 to 61,289,310
- ✓holdsIs each contract's code on chain exactly the code this repository builds?7 Fe contracts byte-identical to fe build with Fe 26.6.0; LiveRecorder and MockRateProvider (rate 1.21) identical to forge's build apart from Solidity's metadata hash
- ✓holdsOn chain, does the attacker's planned batch lower the value behind each share of the pool that rounds as Balancer V2?51 exits in one transaction (0x0ecf…9520, block 61,289,251): 1.0000 to 0.9662 per BPT (-3.38%), equal to the wei to LivePlan's run of the same batch
- ✓holdsDo the typed and guarded pools reject the same batch on chain, keeping the value behind each share?TypedPool: reverted Error("BAL#004") at exit 51 of 51, as LivePlan finds; 1.0000 per BPT unchanged; GuardedPool: reverted Error("BAL#004") at exit 51 of 51, as LivePlan finds; 1.0000 per BPT unchanged
- ✓holdsWithout the exit they reject, does the same batch raise the value behind each typed and guarded share instead?TypedPool: 50 exits, 1.0000 to 1.1391 per BPT (+13.91%); GuardedPool: 50 exits, 1.0000 to 1.1391 per BPT (+13.91%), equal to the wei to LivePlan
- ✓holdsDoes the oracle price cbETH as cbETH/ETH times ETH/USD, read from Chainlink's Base Sepolia feeds with every check?block 61,374,818: 1,857.42 USD, equal to the wei to the product of the feeds' answers; recorded on chain at deployment: 1,989.70 USD (block 61,289,281)
- ✓holdsDeclared as an 8-decimal USD feed, is cbETH/ETH rejected when the contract binding it is deployed?WrongDecimals(0x91b2…944d, 8, 18) in 0x432c…0b53, block 61,289,286
- ✓holdsDeclared with its real 18 decimals, does it deploy, and is every read of it rejected?deployed at 0xc3e3…45f1; its read reverted AnswerOutOfBand(0x91b2…944d: 1.1443, outside 100 to 100,000) in 0x1771…7289, and AnswerOutOfBand(0x91b2…944d: 1.1443, outside 100 to 100,000) at block 61,374,818
- ✓holdsDeclared correctly, does Chainlink's own cbETH/USD feed read through the same contract?block 61,374,818: 1,863.56 USD, its answer to the wei; the oracle's price through ETH is 0.33% from it
- ✓holdsDoes the deployed typed vault preview as OpenZeppelin's ERC4626?24 of 24 previews equal OpenZeppelin's formulas, in 3 states including a first deposit after a one-token donation
Checked at block 61,374,818. Fe contracts are compared byte for byte with what fe build produces here, and the batch and its results with LivePlan's run of it in forge.
Deployed from one account, nothing else in between.
| Contract | What it is | Address |
|---|---|---|
| FaithfulPool | Balancer V2's arithmetic, ported exactly | 0x39577a44…fe2de8 |
| TypedPool | The same pool, its amounts typed by direction | 0xbb36abc7…b8e36d |
| GuardedPool | The typed pool with the runtime share-value guard | 0x62927089…b5a15e |
| MockRateProvider | osETH's rate as the drained pool read it: 1.21 | 0x08a6052b…a3f638 |
| CbethUsdOracle | cbETH in USD through ETH, from Chainlink's Base Sepolia feeds | 0x81c9cd31…11121c |
| DeclaredCbethEthAsUsd | MIP-X43's mistake: cbETH/ETH declared as cbETH/USD, with its real decimals | 0xc3e300b1…2345f1 |
| DeclaredCbethUsd | Chainlink's cbETH/USD, declared correctly | 0x8e5c3f84…0638ee |
| TypedVault | The ERC-4626 vault's four previews | 0xd3090780…abd01f |
| LiveRecorder | Solidity: calls the Fe contracts through ordinary interfaces and logs each outcome with the exact revert data | 0x30da1a5e…6bd5a1 |
Deployer 0x84e223Fb…129dB3. The pools are test contracts with open entry points, as in the fork tests; the record is in the transactions below, which no later call can change.
21 transactions, in order.
| What | Block | Gas | Transaction |
|---|---|---|---|
| deploy LiveRecorder | 61,288,219 | 570,145 | 0xb2126a55…4fa362 |
| deploy MockRateProvider | 61,288,224 | 97,248 | 0x22d491dd…2d808f |
| deploy FaithfulPool | 61,288,230 | 1,784,895 | 0xf4d3dc06…a8bff0 |
| initialize FaithfulPool | 61,288,235 | 207,252 | 0x5d0e819c…10b60a |
| deploy TypedPool | 61,288,240 | 2,086,755 | 0x9538d4a6…66a66b |
| initialize TypedPool | 61,289,237 | 207,694 | 0xde933db6…485541 |
| deploy GuardedPool | 61,289,242 | 2,185,128 | 0x678ca686…fe91c8 |
| initialize GuardedPool | 61,289,247 | 207,726 | 0x4ba5ed0f…85747c |
| attack FaithfulPool (51 exits) | 61,289,251 | 784,948 | 0x0ecfa83e…6f9520 |
| attack TypedPool (51 exits) | 61,289,256 | 824,096 | 0xa31aece1…1231e2 |
| attack GuardedPool (51 exits) | 61,289,261 | 863,879 | 0x4dd5c6e0…fcecdc |
| attack TypedPool (50 exits) | 61,289,266 | 813,514 | 0xdeed2185…29bfea |
| attack GuardedPool (50 exits) | 61,289,271 | 853,326 | 0x90b301a1…07d18e |
| deploy CbethUsdOracle | 61,289,276 | 328,466 | 0x62a87c09…8ae49b |
| probe CbethUsdOracle | 61,289,281 | 68,432 | 0x03e65d1e…f6eace |
| deploy DeclaredCbethUsdFeed through LiveRecorder | 61,289,286 | 83,797 | 0x432c22fc…270b53 |
| deploy DeclaredCbethEthAsUsd | 61,289,290 | 289,416 | 0xba526a65…ac8edc |
| probe DeclaredCbethEthAsUsd | 61,289,295 | 58,315 | 0x177152c1…0f7289 |
| deploy DeclaredCbethUsd | 61,289,300 | 289,428 | 0x27b13f24…f20781 |
| probe DeclaredCbethUsd | 61,289,305 | 56,986 | 0x75e62323…7bd39f |
| deploy TypedVault | 61,289,310 | 198,464 | 0x6bb910f7…18123e |
make live # read the deployment back from Base Sepolia
make live-rehearse # deploy it all again on a local fork; no key needed