This repository collects and documents DeFi attacks and exploits I have studied. Each attack is implemented as a testable contract in the src folder.
src/— Contains Solidity contracts that reproduce or demonstrate notable DeFi exploits.
This project uses Foundry, a fast and modular toolkit for Ethereum application development.
- Foundry installed (
forge,anvil, etc.)
To run a specific exploit test (for example, the ImpermaxV3 exploit):
forge test -vv --match-path src/ImpermaxV3_exp.sol --via-ir