├── .env.example ├── .gitattributes ├── .github └── workflows │ └── main.yml ├── .gitignore ├── LICENSE ├── README.md ├── brownie-config.yml ├── contracts ├── Blacksmith.sol ├── ERC20 │ ├── IERC20.sol │ └── SafeERC20.sol ├── interfaces │ ├── IBlacksmith.sol │ └── ICOVER.sol └── utils │ ├── Address.sol │ ├── Ownable.sol │ ├── ReentrancyGuard.sol │ └── SafeMath.sol ├── interfaces ├── Blacksmith.json └── Cover.json ├── requirements-dev.txt └── tests ├── conftest.py └── test_exploit.py /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/.env.example -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.vy linguist-language=Python 2 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/README.md -------------------------------------------------------------------------------- /brownie-config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/brownie-config.yml -------------------------------------------------------------------------------- /contracts/Blacksmith.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/contracts/Blacksmith.sol -------------------------------------------------------------------------------- /contracts/ERC20/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/contracts/ERC20/IERC20.sol -------------------------------------------------------------------------------- /contracts/ERC20/SafeERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/contracts/ERC20/SafeERC20.sol -------------------------------------------------------------------------------- /contracts/interfaces/IBlacksmith.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/contracts/interfaces/IBlacksmith.sol -------------------------------------------------------------------------------- /contracts/interfaces/ICOVER.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/contracts/interfaces/ICOVER.sol -------------------------------------------------------------------------------- /contracts/utils/Address.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/contracts/utils/Address.sol -------------------------------------------------------------------------------- /contracts/utils/Ownable.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/contracts/utils/Ownable.sol -------------------------------------------------------------------------------- /contracts/utils/ReentrancyGuard.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/contracts/utils/ReentrancyGuard.sol -------------------------------------------------------------------------------- /contracts/utils/SafeMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/contracts/utils/SafeMath.sol -------------------------------------------------------------------------------- /interfaces/Blacksmith.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/interfaces/Blacksmith.json -------------------------------------------------------------------------------- /interfaces/Cover.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/interfaces/Cover.json -------------------------------------------------------------------------------- /requirements-dev.txt: -------------------------------------------------------------------------------- 1 | black==19.10b0 2 | eth-brownie>=1.11.0,<2.0.0 3 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/test_exploit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/emilianobonassi/cover-exploit/HEAD/tests/test_exploit.py --------------------------------------------------------------------------------