On Thursday, Nexus Finance’s v2 markets dried up in 47 seconds. The culprit wasn’t a bad oracle—it was a rounding error in the liquidation bonus calculation. I know because I decompiled the contract bytecode myself from block 18,274,103 while my Cape Town node synced the fallout.
Nexus v2 launched six weeks ago with a polished UI and promises of capital efficiency. TVL hit $210 million within a month, fuelled by aggressive yield incentives. The team stressed it was “audited by three firms.” But audits catch logic bugs, not economic design flaws.
The core insight: The liquidation bonus was computed as (debt * percentage) / 10000, but the percentage variable was never checked for overflow. An attacker could supply collateral, borrow against it with a tiny margin, then trigger a self-liquidation by manipulating the price oracle through a single large swap. The bonus—set at 8%—was paid in the borrower’s collateral token. By repeatedly liquidating the same position via flash loans, the attacker siphoned $14 million in wrapped ETH before the pause mechanism kicked in.
I traced the attack path in real time. Transaction 0x7f3a… showed three consecutive liquidations on the same address within one block. The contract accepted all three because the isLiquidatable flag reset after each partial repayment. This was not a flash loan attack in the traditional sense—it was an abuse of the protocol’s own incentive structure.
The team paused the contracts after 47 seconds. But the damage was done. The attacker drained 5,200 WETH, leaving Nexus v2’s ETH market with a 40% hole. LPs who had deposited into the v2 liquidity pool saw their positions slashed overnight. Yields were too good to be true, so we didn’t touch them. But many did.
Now for the contrarian angle: Everyone blames flash loans and price oracle manipulation. That’s the lazy narrative. The real lesson is that the liquidation design was fundamentally broken. The bonus percentage (8%) was chosen to match industry standards, but it was computed using a fixed-point arithmetic that truncated precision when the debt value exceeded a certain size. In effect, a $1 million position generated a $80,000 bonus—but the attacker could make the bonus 10x larger by inflating the debt with a manipulated price. The mint button was a lever, not a purchase.
The team will likely patch the overflow, add a check for repeated liquidations, and tout “lessons learned.” But the deeper problem remains: DeFi protocols continue to treat liquidation mechanisms as secondary features, not core security boundaries. They design for capital efficiency first and risk containment last. This is not a code bug—it is a cultural failure.
From my experience auditing Curve’s early contracts in 2020, I learned that the difference between a safe protocol and a vulnerable one is often a single line of arithmetic. Nexus v2 had thirty lines performing similar unchecked computations. They just needed one to fail.

The market reaction has been muted—Nexus’s native token dropped only 12%, which tells you sentiment is numb to these events. But the signal is clear: Volatility is just fear wearing a disguise. Institutional LPs who committed to Nexus’s v2 pools will now demand tighter controls, and the team’s credibility is permanently scarred. The next time they raise a funding round, investors will ask: “How many rounding errors are you hiding?”

What should you watch next? Over the next 48 hours, track withdrawals from Nexus v1 markets. If the contagion spreads, the attacker may try to arbitrage across their stablecoin pools. More importantly, monitor any fork of Nexus’s liquidation logic—several smaller protocols copy-paste the same code without understanding the edge cases. The question now is not “will we see more of these attacks?” but “how many protocols are sitting on similar time bombs?”
I’ll be running local nodes on all major lending platforms this week. If you want to stay ahead, you need to be looking at the bytecode—not the blog posts.