I caught the exploit 4 seconds after it hit the mempool.
Block 19,874,231. A single transaction with a gas price spike to 2,500 gwei. Not a whale moving stablecoins. Not an NFT mint. The contract interaction reeked of flash loan orchestration. I pulled the trace before Etherscan even rendered it.

Context: Why NovaSwap Was a Sitting Duck
NovaSwap is an automated market maker on Arbitrum Nova, launched in Q4 2024 with a promise of zero-slippage stablecoin swaps using a novel 'virtual liquidity pool' architecture. The team claimed their invariant was 'incentive-compatible' and audited by a top-tier firm. By May 2025, they had $340M TVL, mostly from yield farmers chasing 18% APR on USDC/USDT pools.
The key architectural flaw: their price oracle relied on a time-weighted average price (TWAP) from Uniswap V3, but the actual swap execution used an internal pool balance that could be manipulated within the same block. Classic sandwich attack vector, but wrapped in fancy math.
Core: The Transaction-Level Breakdown
Here's what I reconstructed from the raw execution logs:
- Flash Loan Initiation (0x1a2b...3c4d): The attacker borrowed 50,000 ETH from Aave, transferred to Arbitrum Nova via the native bridge.
- First Swap (0x5e6f...7g8h): They swapped 10,000 ETH for USDC on NovaSwap's USDC/ETH pool. This depleted the pool's ETH reserve by 30%, pushing the internal price to $4,200 per ETH.
- TWAP Exploit (0x9i0j...1k2l): Simultaneously, they placed a large sell order on Uniswap V3's ETH/USDC pool, crashing the external TWAP from $3,100 to $2,800. NovaSwap's TWAP oracle was a 10-block simple moving average. The attacker only needed to influence blocks 19,874,231 through 19,874,240.
- Second Swap (0x2m3n...4o5p): With the internal pool price now artificially high and the external TWAP artificially low, they swapped the remaining 40,000 ETH into USDC at the inflated internal rate. Net gain: 8.2 million USDC.
- Flash Loan Repayment (0x6q7r...8s9t): Returned 50,000 ETH + 0.1% fee to Aave. Profit: $12.1 million.
The entire sequence took 7 blocks. The attacker paid $4,700 in gas. That's a 2,500x return on gas investment.
I ran my own test after the attack. Using a forked mainnet state, I reproduced the manipulation with a 200 ETH test. It worked in 4 blocks. The NovaSwap team had no time-buffering mechanism. Their 'virtual liquidity' was just a marketing term for a single-sided pool that recalculated invariant on every swap.
Contrarian: The Real Blame Isn't the Code
Everyone is screaming 'unverified audit'. But the audit report (dated Dec 2024) explicitly flagged the TWAP manipulation risk. The NovaSwap team chose to not implement mitigation because 'it would reduce capital efficiency.'
This isn't a technical failure. It's an incentive failure. NovaSwap's tokenomics pushed for TVL growth at any cost. The team knew the oracle was fragile, but they prioritized APR numbers to attract LPs. The $12M loss will be socialized — the DAO is voting on a 'compensation plan' using newly minted NOVA tokens, diluting existing holders by 15%.
The real story: The attacker likely used the same exploit path identified by a whitehat in March 2025. NovaSwap's bug bounty program paid 0.5 ETH for critical findings. The whitehat walked away. Why spend weeks mitigating when you can rug-pull your own TVL?
Takeaway: Don't Trust 'Audited by [Firm]' Labels
I've audited over 30 DeFi protocols. Every single one has at least one 'accepted risk' in the final report. The difference is how they handle it. NovaSwap chose to play roulette and lost.
Next time you see a 18% APR on a pool, ask yourself: what's the accepted risk? If the answer is vague, your yield is just a time-bomb waiting for a mempool scanner.
⚠️ Deep article forbidden—this is raw mempool data, not market commentary.
⚠️ Deep article forbidden—I tracked the attacker's wallet; it still holds 4,000 ETH in Tornado Cash.
⚠️ Deep article forbidden—NovaSwap's TVL dropped 70% in 24 hours. The remaining 30%? Bots that can't withdraw due to cooldown.
⚠️ Deep article forbidden—The same TWAP vulnerability exists in 12 other forks. I'm not naming them. They know who they are.
⚠️ Deep article forbidden—If you're a NovaSwap LP, your unlock schedule is 7 days. The price impact of your exit will be catastrophic.
Based on my audit experience, this was a preventable disaster. The code wasn't the enemy. The product-market fit for 'gambling with oracle tolerances' was.
NovaSwap's team raised $22M from VCs. They'll likely pivot to AI or something. Retail LPs? They'll eat the loss.
Welcome to bull market DeFi. Where yield is cocaine and accountability is optional.