{"id":15633754,"url":"https://github.com/sunweb3sec/defilabs","last_synced_at":"2025-07-16T22:33:15.076Z","repository":{"id":104119643,"uuid":"524120582","full_name":"SunWeb3Sec/DeFiLabs","owner":"SunWeb3Sec","description":"On-chain test DeFi using Foundry","archived":false,"fork":false,"pushed_at":"2023-06-11T14:24:40.000Z","size":72,"stargazers_count":200,"open_issues_count":0,"forks_count":67,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-09T16:15:06.150Z","etag":null,"topics":["defi","foundry","solidity"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SunWeb3Sec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-12T14:37:05.000Z","updated_at":"2025-04-09T11:12:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba35bce0-b43f-47d4-ad32-cf536f149c71","html_url":"https://github.com/SunWeb3Sec/DeFiLabs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunWeb3Sec%2FDeFiLabs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunWeb3Sec%2FDeFiLabs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunWeb3Sec%2FDeFiLabs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SunWeb3Sec%2FDeFiLabs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SunWeb3Sec","download_url":"https://codeload.github.com/SunWeb3Sec/DeFiLabs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065282,"owners_count":21041872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["defi","foundry","solidity"],"created_at":"2024-10-03T10:50:09.483Z","updated_at":"2025-04-09T16:15:10.492Z","avatar_url":"https://github.com/SunWeb3Sec.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeFiLabs\n\nIn-progress.\n\nThis repo aim to learn DeFi projects; how the functionality works, on-chain testing, bug finding, fuzzing, CI, etc.\n\n## Getting Started\n\n* Follow the [instructions](https://book.getfoundry.sh/getting-started/installation.html) to install [Foundry](https://github.com/foundry-rs/foundry).\n\n* Clone and install dependencies:```git submodule update --init --recursive```\n\n* To see function signatures you shoul add `--etherscan-api-key YOURAPIKEY` at the end of the `forge test`, you coul get an API key on https://etherscan.io/myapikey\n\n### FlashLoan Testing\n\nUniSwapV2 FlashSwap Testing\n```sh\nforge test --contracts ./src/test/Uniswapv2_flashswap.sol -vv\n```\n\nDODO FlashLoan Testing\n```sh\nforge test --contracts ./src/test/DODO_flashloan.sol -vv\n```\n\nAAVE FlashLoan Testing\n```sh\nforge test --contracts ./src/test/Aave_flashloan.sol -vv\n\n```\n\nBalancer FlashLoan Testing\n```sh\nforge test --contracts ./src/test/Balancer_flashloan.sol -vv\n```\n\nPancakeswap FlashSwap Testing\n```sh\nforge test --contracts ./src/test/Pancakeswap_flashswap.sol -vv\n```\n\nBiswap FlashSwap Testing\n```sh\nforge test --contracts ./src/test/Biswap_flashloan.sol -vv\n```\n### ChainLink Testing\ngetLatestPrice | more tests in-progress\n```sh\nforge test --contracts ./src/test/Chainlink.sol -vv\n```\n### Compound Testing\nERC20 - cToken Supply/Redeem/Borrow/Repay | more tests in-progress\n```sh\nforge test --contracts ./src/test/Compound.sol -vv\n```\nGoverance - submit proposal | more tests in-progress\n```sh\nforge test --contracts ./src/test/Compound-dao.sol -vv\n```\n### UniswapV3 Testing\nGet Time Widget Avarge Tick | [Periphery](https://github.com/gakonst/v3-periphery-foundry)\n```sh\nforge test --contracts ./src/test/Uniswapv3_twap.sol -vv\n```\n### UniswapV2 Testing\nSwap | [Router | Pair | Factory | Library](https://github.com/Jeiwan/zuniswapv2)\n```sh\nforge test --contracts ./src/test/Uniswapv2.sol -vv\n```\n### Curve Testing\nSwap | more tests in-progress\n```sh\nforge test --contracts ./src/test/Curve.sol -vv\n```\n\n### GMX Swap Testing\n\n```sh\nforge test --contracts ./src/test/gmx_swap.sol -vv\n```\n### MakerDAO Testing\n### Balancer Testing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunweb3sec%2Fdefilabs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunweb3sec%2Fdefilabs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunweb3sec%2Fdefilabs/lists"}