Skip to content
Back to Guavy Wire
Crypto

Balancer V1 Exploit Hits Unmaintained Code: $234k Loss

Instruments
BTC UNI AAVE BAL
Share

Security firm SlowMist has identified an exploit in Balancer V1's BPool contract, resulting in a loss of approximately $234,000. The attack occurred when an attacker used flash loans from various DeFi platforms to compress the pool's WBTC reserves until it was possible to mint pool tokens for a single satoshi.

The vulnerability lies in the joinswapPoolAmountOut function, which allows callers to specify the output of pool tokens rather than the input. This function uses 18-decimal fixed-point math, but when the pool's reserves are large relative to the requested output, the calculation rounds down to the smallest representable unit.

The attacker was able to exploit this flaw by compressing the WBTC reserves using flash loans from Spark, Aave, Morpho, and Uniswap V3. Once the reserves were sufficiently reduced, the contract calculated a required input of one satoshi, allowing the attacker to mint 4,408.8 BPT tokens.

SlowMist has identified three missing checks in the contract: no minimum effective input, no minimum pool balance, and no relative-error validation. The contract's _MIN_BALANCE constant is enforced only in the bind and rebind functions, which govern adding and adjusting tokens in a pool, not in the join path.

More on Crypto

Disclaimer: Guavy is a data and market intelligence provider, not an investment adviser. The information, signals, and market analysis provided by the Guavy API and related services are for informational purposes only and are not intended as financial advice, investment recommendations, or an endorsement of any particular trading strategy. Trading in volatile markets, including cryptocurrency, carries significant risk and may not be suitable for all investors. Past performance is not indicative of future results. Users should consult with a qualified financial professional before making any investment decisions. Guavy makes no guarantee of trading profits or financial returns.

Market sentiment intelligence for apps, funds & agents

Location

729 55 Ave SW
Calgary AB T2V 0G4
Canada

© 2026 Guavy Inc