Damn Vulnerable DeFi is the wargame to learn offensive security of DeFi smart contracts in Ethereum.
Featuring flash loans, price oracles, governance, NFTs, DEXs, lending pools, smart contract wallets, timelocks, and more!
How to play
- Clone the repository
- Checkout the latest version with
git checkout v3.0.0
- Install dependencies with
- Code your solution in the
*.challenge.jsfile (inside each challenge's folder in the
- Run the challenge with
yarn run challenge-name. If the test is executed successfully, you've passed!
- To code the solutions, you may need to read Ethers and Hardhat docs.
- In all challenges you must use the account called
player. In Ethers, that may translate to using
- Some challenges require you to code and deploy custom smart contracts.
- Go here for troubleshooting, support and Q&A.