├── .gitignore ├── .gitmodules ├── README.md ├── foundry.toml └── src └── test ├── Aave_flashloan.sol ├── Balancer_flashloan.sol ├── Biswap_flashloan.sol ├── Chainlink.sol ├── Compound-dao.sol ├── Compound.sol ├── Curve.sol ├── DODO_flashloan.sol ├── Pancakeswap_flashswap.sol ├── Uniswapv2.sol ├── Uniswapv2_flashswap.sol ├── Uniswapv3_twap.sol ├── dodo_bsc_flashloan.sol ├── gmx_swap.sol └── interfaces ├── IBalancerVault.sol ├── ICompound.sol ├── ICurveStableSwap.sol ├── IDVM.sol ├── IERC20.sol ├── ILendingPool.sol ├── IPancakePair.sol ├── IRouter.sol ├── IUSDT.sol ├── IUni_Pair_V2.sol ├── IUni_Pool_V3.sol ├── IUniswap.sol ├── IVault.sol ├── IVaultUtils.sol ├── IWBNB.sol ├── IWETH9.sol └── cheat.sol /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/.gitmodules -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/README.md -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/foundry.toml -------------------------------------------------------------------------------- /src/test/Aave_flashloan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Aave_flashloan.sol -------------------------------------------------------------------------------- /src/test/Balancer_flashloan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Balancer_flashloan.sol -------------------------------------------------------------------------------- /src/test/Biswap_flashloan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Biswap_flashloan.sol -------------------------------------------------------------------------------- /src/test/Chainlink.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Chainlink.sol -------------------------------------------------------------------------------- /src/test/Compound-dao.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Compound-dao.sol -------------------------------------------------------------------------------- /src/test/Compound.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Compound.sol -------------------------------------------------------------------------------- /src/test/Curve.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Curve.sol -------------------------------------------------------------------------------- /src/test/DODO_flashloan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/DODO_flashloan.sol -------------------------------------------------------------------------------- /src/test/Pancakeswap_flashswap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Pancakeswap_flashswap.sol -------------------------------------------------------------------------------- /src/test/Uniswapv2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Uniswapv2.sol -------------------------------------------------------------------------------- /src/test/Uniswapv2_flashswap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Uniswapv2_flashswap.sol -------------------------------------------------------------------------------- /src/test/Uniswapv3_twap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/Uniswapv3_twap.sol -------------------------------------------------------------------------------- /src/test/dodo_bsc_flashloan.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/dodo_bsc_flashloan.sol -------------------------------------------------------------------------------- /src/test/gmx_swap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/gmx_swap.sol -------------------------------------------------------------------------------- /src/test/interfaces/IBalancerVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IBalancerVault.sol -------------------------------------------------------------------------------- /src/test/interfaces/ICompound.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/ICompound.sol -------------------------------------------------------------------------------- /src/test/interfaces/ICurveStableSwap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/ICurveStableSwap.sol -------------------------------------------------------------------------------- /src/test/interfaces/IDVM.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IDVM.sol -------------------------------------------------------------------------------- /src/test/interfaces/IERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IERC20.sol -------------------------------------------------------------------------------- /src/test/interfaces/ILendingPool.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/ILendingPool.sol -------------------------------------------------------------------------------- /src/test/interfaces/IPancakePair.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IPancakePair.sol -------------------------------------------------------------------------------- /src/test/interfaces/IRouter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IRouter.sol -------------------------------------------------------------------------------- /src/test/interfaces/IUSDT.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IUSDT.sol -------------------------------------------------------------------------------- /src/test/interfaces/IUni_Pair_V2.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IUni_Pair_V2.sol -------------------------------------------------------------------------------- /src/test/interfaces/IUni_Pool_V3.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IUni_Pool_V3.sol -------------------------------------------------------------------------------- /src/test/interfaces/IUniswap.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IUniswap.sol -------------------------------------------------------------------------------- /src/test/interfaces/IVault.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IVault.sol -------------------------------------------------------------------------------- /src/test/interfaces/IVaultUtils.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IVaultUtils.sol -------------------------------------------------------------------------------- /src/test/interfaces/IWBNB.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IWBNB.sol -------------------------------------------------------------------------------- /src/test/interfaces/IWETH9.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/IWETH9.sol -------------------------------------------------------------------------------- /src/test/interfaces/cheat.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SunWeb3Sec/DeFiLabs/HEAD/src/test/interfaces/cheat.sol --------------------------------------------------------------------------------