https://github.com/beeb/damn-vulnerable-defi
My solutions for the Damn Vulnerable DeFi challenges
https://github.com/beeb/damn-vulnerable-defi
Last synced: 11 months ago
JSON representation
My solutions for the Damn Vulnerable DeFi challenges
- Host: GitHub
- URL: https://github.com/beeb/damn-vulnerable-defi
- Owner: beeb
- Created: 2023-11-23T06:48:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-04T12:52:57.000Z (almost 2 years ago)
- Last Synced: 2025-06-25T02:05:29.512Z (11 months ago)
- Language: Solidity
- Homepage: https://www.damnvulnerabledefi.xyz/
- Size: 93.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Damn Vulnerable DeFi
[Official Website](https://www.damnvulnerabledefi.xyz/)
Run `forge install` to get the standard library and dependencies.
To solve a puzzle, copy the relevant contracts from
[the official repo](https://github.com/tinchoabbate/damn-vulnerable-defi/tree/v3.0.0/contracts) into the `src`
directory.
Then, create a new test file in the `test` directory and translate the setup from the
[official tests](https://github.com/tinchoabbate/damn-vulnerable-defi/tree/v3.0.0/test).
The test contract should inherit from the `test/utils/Fixtures.sol:BaseFixture` contract so that the `deployer`,
`player` and other user addresses are available for the setup.
Finally, run the tests with:
```
forge test -vvv
```