Home

Awesome

DeFiLabs

In-progress.

This repo aim to learn DeFi projects; how the functionality works, on-chain testing, bug finding, fuzzing, CI, etc.

Getting Started

FlashLoan Testing

UniSwapV2 FlashSwap Testing

forge test --contracts ./src/test/Uniswapv2_flashswap.sol -vv

DODO FlashLoan Testing

forge test --contracts ./src/test/DODO_flashloan.sol -vv

AAVE FlashLoan Testing

forge test --contracts ./src/test/Aave_flashloan.sol -vv

Balancer FlashLoan Testing

forge test --contracts ./src/test/Balancer_flashloan.sol -vv

Pancakeswap FlashSwap Testing

forge test --contracts ./src/test/Pancakeswap_flashswap.sol -vv

Biswap FlashSwap Testing

forge test --contracts ./src/test/Biswap_flashloan.sol -vv

ChainLink Testing

getLatestPrice | more tests in-progress

forge test --contracts ./src/test/Chainlink.sol -vv

Compound Testing

ERC20 - cToken Supply/Redeem/Borrow/Repay | more tests in-progress

forge test --contracts ./src/test/Compound.sol -vv

Goverance - submit proposal | more tests in-progress

forge test --contracts ./src/test/Compound-dao.sol -vv

UniswapV3 Testing

Get Time Widget Avarge Tick | Periphery

forge test --contracts ./src/test/Uniswapv3_twap.sol -vv

UniswapV2 Testing

Swap | Router | Pair | Factory | Library

forge test --contracts ./src/test/Uniswapv2.sol -vv

Curve Testing

Swap | more tests in-progress

forge test --contracts ./src/test/Curve.sol -vv

GMX Swap Testing

forge test --contracts ./src/test/gmx_swap.sol -vv

MakerDAO Testing

Balancer Testing