├── .gitignore ├── LICENSE ├── README.md ├── contracts ├── LeBo.sol ├── LeBoRekt.sol └── interfaces │ ├── IERC20.sol │ ├── IERC3156FlashBorrower.sol │ ├── IERC3156FlashLender.sol │ ├── IUniswapV2Pair.sol │ ├── IUniswapV2Router.sol │ └── IWETH.sol ├── hardhat.config.js ├── package.json ├── test └── flashLoan.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/README.md -------------------------------------------------------------------------------- /contracts/LeBo.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/contracts/LeBo.sol -------------------------------------------------------------------------------- /contracts/LeBoRekt.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/contracts/LeBoRekt.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/contracts/interfaces/IERC20.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC3156FlashBorrower.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/contracts/interfaces/IERC3156FlashBorrower.sol -------------------------------------------------------------------------------- /contracts/interfaces/IERC3156FlashLender.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/contracts/interfaces/IERC3156FlashLender.sol -------------------------------------------------------------------------------- /contracts/interfaces/IUniswapV2Pair.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/contracts/interfaces/IUniswapV2Pair.sol -------------------------------------------------------------------------------- /contracts/interfaces/IUniswapV2Router.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/contracts/interfaces/IUniswapV2Router.sol -------------------------------------------------------------------------------- /contracts/interfaces/IWETH.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/contracts/interfaces/IWETH.sol -------------------------------------------------------------------------------- /hardhat.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/hardhat.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/package.json -------------------------------------------------------------------------------- /test/flashLoan.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/test/flashLoan.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxsam4/bad-lending-demo/HEAD/yarn.lock --------------------------------------------------------------------------------