This is a walkthrough for the Damn Vulnerable Defi challenges (sorry to say these don't work anymore).
- Clone the repository
- Install dependencies with npm install
- Code your solutions in the provided *.challenge.js files (inside each challenge's folder in the test folder)
- The file will tell you where to put you exploit
- DON'T delete anything else in the file
- Any contracts used to attack add them to the folder
./contracts/attacker-contracts
- Run your exploit for a challenge with npm run challenge-name. If the challenge is executed successfully, you've passed!
I was able to complete the challenges with the help of looking through MrToph's walkthrough. whenever I got stuck.
Working on doing the new challenges just released!