Warp Finance Hack

TOTAL LOST $7.8M
Medium Flash Loan Attack ethereum

Summarize with AI

Affected Chain ethereum Incident surface
Recovered $5.8M 74.4% returned
All-Time Rank #355 By amount stolen
Protocol Type Launchpad Target category

Incident Overview

Exploitation of WarpFinance via flash loans resulted in a loss of approximately $7.8 million.

The attacker initiated the exploit by taking four different flash loans of 2.9M DAI + 344.8K WETH from dYdX and UniswapV2. They then deposited the dYdX flash loan into the UniswapV2 pair (WETH-DAI), minting 94.349K LP tokens in return. These tokens were transferred to WarpVaultLP as collateral.

The attacker then swapped 341K WETH for 47.6M DAI via UniswapV2, causing DAI to become very expensive and doubling the LP token price. With the inflated LP token price and collateral value, the attacker was able to borrow 3.86M DAI and 3.9M USDC from WarpFinance, totaling about $7.8 million. The attacker then returned the flash loans to dYdX and UniswapV2.

Smart contract used in the attack:

https://etherscan.io/address/0xdf8bee86…3dbacb

Transactions involved in the attack:

https://ethtx.info/mainnet/0x8bb8dc5c…595090

https://etherscan.io/tx/0x8bb8dc5c…595090

Incident Report

Protocol / Project Warp Finance
Date of Incident
Affected Chain(s) ethereum
Attack Technique Flash Loan Attack
Classification Borrowing and Lending
Primary Source View Post-Mortem

Protocol Information

Protocol Type Launchpad
Affected Token WARP
Official Website www.warp.finance/
Protocol Twitter/X @warpfinance
Team Anonymous
Source Code Unverified

Market Context at Time of Hack

Token Categories
Decentralized Exchange (DEX) Token DeFi Privacy DAO Yield Farming AMM DEX Governance

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Deep understanding of flash loan attack and Solidity and EVM internals
Capital Required Flash loan capital (borrowed atomically, zero upfront cost)
On-Chain Access Ability to interact with ethereum smart contracts and deploy a custom exploit contract
Protocol Analysis Identification of the exploitable vulnerability in Warp Finance's contract logic - root cause: borrowing and lending
Execution Speed Precise transaction ordering and timing to exploit the vulnerability within a single atomic block
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Yes — skilled auditors routinely flag Flash Loan Attack vulnerabilities in code review

If you're auditing a protocol with similar architecture to Warp Finance, these are the critical security checks that could have prevented this incident (December 2020).

  • Verify all logic paths related to Flash Loan Attack are guarded by proper access controls and input validation - see the Flash Loans Attacks attack class for patterns
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Funds Recovery

74.4%

Recovered

$5.8M

Net Loss

1996799

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Flash Loans Attacks examples →

Sources & References

Learn to Prevent the Next Warp Finance

The Warp Finance hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial