Welcome to the repository dedicated to the solutions for the DamnVulnerableDeFi challenges, a series of offensive security challenges on Ethereum smart contracts, spanning from flash loans, price oracles, governance, NFTs, lending pools, smart contract wallets, timelocks and etc. This collection not only includes the exploit scripts and smart contracts but also detailed write-ups and annotated code to guide you through the thought process behind each solution.
All of the exploits have been methodically organised within the test/ directory, corresponding to each challenge. Any additional supplementary materials like smart contracts that has been written for the challenge have been included in each contract challenge folders.
I would like to extend my sincere appreciation to @tinchoabbate for crafting these intricate and educational challenges.
To begin, ensure that all necessary dependencies are installed by executing:
yarn install
To execute a specific challenge solution, use the following command structure:
yarn run <CHALLENGE_NAME>
Please replace <CHALLENGE_NAME> with the actual name of the challenge you wish to run.