An open API service indexing awesome lists of open source software.

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

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
```