In this repository we provide explained solutions to the challenges of Damn Vulnerable DeFi v2.
Damn Vulnerable DeFi is a set of challenges to hack implementations of DeFi in Ethereum. It features flash loans, price oracles, governance, NFTs, lending pools, smart contract wallets, timelocks, and more!
- Unstoppable
- Naive receiver
- Truster
- Side entrance
- The rewarder
- Selfie
- Compromised
- Puppet
- Puppet v2
- Free rider
- Backdoor
- Climber
To test the solution of any of this challenges it suffices to run
yarn <challenge-name>
or
npm run <challenge-name>
All Solidity code, practices and patterns in this repository are DAMN VULNERABLE and for educational purposes only.
The challenge was originally created by @tinchoabbate
DO NOT USE IN PRODUCTION.