bZx Flash Loan Attacks · interactive mechanism simulation

One atomic transaction: flash-borrow ETH, buy up a thin DEX pool to distort its spot price, then borrow against that distorted price on bZx — and repay the loan before the block ends, pocketing the difference.
Attacker flash-borrows ETH Thin DEX pool price: 1.00× bZx price oracle reads spot: 1.00× bZx margin position collateral value: $0 dYdX flash pool 0 ETH out on loan Attacker profit $0 net (post-repay)
Flash loan size
0 ETH
DEX price distortion
1.00×
Net attacker profit
$0.0 k
Block window
idle
Parameters — edit me
10,000 ETH
$1.5M
5.0×
0%
Controls

Illustrative simulation. Defaults mirror the researched mechanism (10,000 ETH dYdX flash loan, thin Uniswap/Kyber liquidity, a short-circuiting collateralization guard), but pool depth and profit figures are simplified and randomized for visualization — not live on-chain data. Raise "collateral guard strength" and re-trigger to see a sound liquidation check blunt the attack. Part of The Onchain Experiment Atlas.