{"id":16979163,"url":"https://github.com/yuichiroaoki/poly-flash","last_synced_at":"2025-08-01T05:05:05.469Z","repository":{"id":37020296,"uuid":"430234705","full_name":"yuichiroaoki/poly-flash","owner":"yuichiroaoki","description":"Flashloan on Polygon","archived":false,"fork":false,"pushed_at":"2022-10-18T02:53:00.000Z","size":2637,"stargazers_count":301,"open_issues_count":24,"forks_count":175,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-05-18T16:06:53.740Z","etag":null,"topics":["blockchain","bsc","dodo","ethereum","flashloan","matic","mev","polygon","solidity","typescript"],"latest_commit_sha":null,"homepage":"https://yuichiroaoki.medium.com/no-flashloan-fee-with-dodo-cc78215d7f93","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/yuichiroaoki.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":"2021-11-20T23:55:23.000Z","updated_at":"2025-05-01T05:05:43.000Z","dependencies_parsed_at":"2023-01-17T14:02:00.519Z","dependency_job_id":null,"html_url":"https://github.com/yuichiroaoki/poly-flash","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"yuichiroaoki/typescript-hardhat","purl":"pkg:github/yuichiroaoki/poly-flash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuichiroaoki%2Fpoly-flash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuichiroaoki%2Fpoly-flash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuichiroaoki%2Fpoly-flash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuichiroaoki%2Fpoly-flash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuichiroaoki","download_url":"https://codeload.github.com/yuichiroaoki/poly-flash/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuichiroaoki%2Fpoly-flash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268171959,"owners_count":24207437,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["blockchain","bsc","dodo","ethereum","flashloan","matic","mev","polygon","solidity","typescript"],"created_at":"2024-10-14T01:45:00.022Z","updated_at":"2025-08-01T05:05:05.411Z","avatar_url":"https://github.com/yuichiroaoki.png","language":"Solidity","funding_links":[],"categories":["Solidity"],"sub_categories":[],"readme":"# Poly-Flash\n\n![test](https://github.com/yuichiroaoki/poly-flash/actions/workflows/polygon.yaml/badge.svg)\n![test](https://github.com/yuichiroaoki/poly-flash/actions/workflows/bsc.yaml/badge.svg)\n\nAn open source flashloan smart contract on polygon network\n\n## Installation\n\n### 1. Install [Node.js](https://nodejs.org/en/) \u0026 [yarn](https://classic.yarnpkg.com/en/docs/install/#windows-stable), if you haven't already.\n\n### 2. Clone This Repo\n\nRun the following command.\n\n```bash\ngit clone https://github.com/yuichiroaoki/poly-flash.git\ncd poly-flash\n```\n\n## Quickstart\n\n### 1. Setup Environment Variables\n\nYou'll need an `ALCHEMY_POLYGON_RPC_URL` environment variable. You can get one from [Alchemy website](https://alchemy.com/?r=33851811-6ecf-40c3-a36d-d0452dda8634) for free.\n\nThen, you can create a .env file with the following.\n\n```\nALCHEMY_POLYGON_RPC_URL='\u003cyour-own-alchemy-polygon-mainnet-rpc-url\u003e'\n```\n\n#### Add your Private Key\n\nIf you want to execute flashloan on the polygon mainnet, you need to add your `PRIVATE_KEY` environment variable, [with a private key from your wallet](https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-Export-an-Account-Private-Key).\n\n```\nPRIVATE_KEY='your-PRIVATE_KEY'\n```\n\n\\*Note: If using metamask, you'll have to add a `0x` to the start of your private key)\n\n### 2. Install Dependencies\n\nRun the following command.\n\n```bash\nyarn install\n```\n\n### 3. Compile Smart Contracts\n\nRun the following command.\n\n```bash\nyarn compile\n```\n\n### 4. Test on Polygon Mainnet Fork 🔥\n\nRun the following command.\n\n```bash\nyarn test test/polygon/dodoflash.test.ts\n```\n\n## Deploy\n\nOnce you have successfully done the above quickstart and added your private key to .env file, you can deploy your smart contract with the following command:\n\n```bash\nyarn deploy --network polygon\n```\n\nIt costs about 0.2 MATIC to deploy `Flashloan` contract.\n\n## Example Contract\n\nhttps://polygonscan.com/address/0xb6c4448386c4ecf4e5eab057351f8a6a8a465a0d\n\n## Liquidations\n\nDeploy on the polygon mainnnet fork with the following command:\n\n```bash\nyarn liquidations\n```\n\nDeploy on the polygon mainnnet with the following command:\n\n```bash\nyarn liquidations --network polygon\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuichiroaoki%2Fpoly-flash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuichiroaoki%2Fpoly-flash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuichiroaoki%2Fpoly-flash/lists"}