{"id":21361146,"url":"https://github.com/kaymen99/aave-flashloan-arbitrage","last_synced_at":"2026-01-24T08:31:33.951Z","repository":{"id":48276288,"uuid":"480157102","full_name":"kaymen99/aave-flashloan-arbitrage","owner":"kaymen99","description":"This a smart contract for performing arbitrage with AAVE flashloan between Uniswap \u0026 Sushiswap","archived":false,"fork":false,"pushed_at":"2024-04-12T23:43:17.000Z","size":260,"stargazers_count":140,"open_issues_count":4,"forks_count":40,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-07T04:05:21.673Z","etag":null,"topics":["aave-protocol","arbitrage","brownie","defi","flashloan","openzeppelin","solidity","sushiswap","uniswap-v2"],"latest_commit_sha":null,"homepage":"","language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaymen99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-10T22:37:45.000Z","updated_at":"2025-04-06T15:23:07.000Z","dependencies_parsed_at":"2022-08-12T19:41:30.530Z","dependency_job_id":null,"html_url":"https://github.com/kaymen99/aave-flashloan-arbitrage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kaymen99/aave-flashloan-arbitrage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaymen99%2Faave-flashloan-arbitrage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaymen99%2Faave-flashloan-arbitrage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaymen99%2Faave-flashloan-arbitrage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaymen99%2Faave-flashloan-arbitrage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaymen99","download_url":"https://codeload.github.com/kaymen99/aave-flashloan-arbitrage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaymen99%2Faave-flashloan-arbitrage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28720744,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T08:27:05.734Z","status":"ssl_error","status_checked_at":"2026-01-24T08:27:01.197Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["aave-protocol","arbitrage","brownie","defi","flashloan","openzeppelin","solidity","sushiswap","uniswap-v2"],"created_at":"2024-11-22T06:08:47.045Z","updated_at":"2026-01-24T08:31:33.937Z","avatar_url":"https://github.com/kaymen99.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aave-flashloan-arbitrage\nThis a smart contract for performing arbitrage with AAVE flashloan between Uniswap \u0026amp; Sushiswap\n\n## Features:\nFlashloans are one of the most exciting concept in the web3.0 \u0026 Defi industry, they allow users to borrow a large amounts of assets (ERC20) and use the them for any kind of application in condition that the borrowed money is returned in the same transaction.Many protocols provide the possibility of flashloan like aave, uniswap, dydx,...\n\nThe FlashLoanArbitrage smart contrat uses the aave flashloan to do arbitrage between Uniswap \u0026 Sushiswap exchanges, it's devided into 2 part:\nThe first is for the arbitrage logic and deposit and withdraw functionalities and the second implement the flashloan logic that can be found in the aave Docs\n\n## Built With:\n\n* [Solidity](https://docs.soliditylang.org/)\n* [Brownie](https://eth-brownie.readthedocs.io)\n* [OpenZeppelin](https://docs.openzeppelin.com)\n\n## Usage:\n\n### Installation \u0026 Setup:\n\n1. Installing Brownie: Brownie is a python framework for smart contracts development,testing and deployments. It's quit like [HardHat](https://hardhat.org) but it uses python for writing test and deployements scripts instead of javascript.\n   Here is a simple way to install brownie.\n   ```\n    pip install --user pipx\n    pipx ensurepath\n    # restart your terminal\n    pipx install eth-brownie\n   ```\n   Or if you can't get pipx to work, via pip (it's recommended to use pipx)\n    ```\n    pip install eth-brownie\n    ```\n   Install [ganache-cli](https://www.npmjs.com/package/ganache-cli): \n   ```sh\n    npm install -g ganache-cli\n    ```\n    \n3. Clone the repo:\n   ```sh\n   git clone https://github.com/kaymen99/aave-flashloan-arbitrage.git\n   cd aave-flashloan-arbitrage\n   ```\n\n4. Set your environment variables:\n\n   To be able to deploy to real testnets you need to add your PRIVATE_KEY (You can find your PRIVATE_KEY from your ethereum wallet like metamask) and the infura project Id (just create an infura account it's free) to the .env file:\n   ```\n   PRIVATE_KEY=\u003cPRIVATE_KEY\u003e\n   WEB3_INFURA_PROJECT_ID=\u003c\u003c YOUR INFURA PROJECT ID \u003e\u003e\n   ```\n### How to run:\n\nTo start an arbitrage on the mainnet fork (for testing purposes only, you can also use the kovan testnet) you just need to run the command :\n   ```sh\n   brownie run scripts/flashloan_arbitrage.py --network=mainnet-fork\n   ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaymen99%2Faave-flashloan-arbitrage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaymen99%2Faave-flashloan-arbitrage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaymen99%2Faave-flashloan-arbitrage/lists"}