All Projects → yuichiroaoki → poly-flash

yuichiroaoki / poly-flash

Licence: MIT license
Flashloan on Polygon

Programming Languages

solidity
1140 projects
typescript
32286 projects
shell
77523 projects

Projects that are alternatives of or similar to poly-flash

uniswap-arbitrage-flash-swap
Uniswap flash swap arbitrage solidity contracts
Stars: ✭ 341 (+46.35%)
Mutual labels:  polygon, bsc, flashloan
Bogged-Token-List
Multichain token lists by Bogged Finance
Stars: ✭ 106 (-54.51%)
Mutual labels:  polygon, bsc, matic
farm-army-backend
Track your farming and pool performance on the Binance Smart Chain, Polygon, Fantom, KuCoin Community Chain, Harmony, Celo - https://farm.army - nodejs backend
Stars: ✭ 86 (-63.09%)
Mutual labels:  polygon, bsc, matic
matic-docs
The official documentation for all Polygon products.
Stars: ✭ 181 (-22.32%)
Mutual labels:  polygon, matic
nft-swap-sdk
Ethereum's missing p2p NFT and token swap library for web3 developers. Written in TypeScript. Powered by 0x.
Stars: ✭ 200 (-14.16%)
Mutual labels:  polygon, matic
typescript-eth-starter
🔌 Ethereum Dapp Basic Typescript Starter
Stars: ✭ 125 (-46.35%)
Mutual labels:  polygon, matic
Rabby
The game-changing wallet for Ethereum and all EVM chains
Stars: ✭ 562 (+141.2%)
Mutual labels:  polygon, bsc
nft-collection-scaffold
Production-ready code for an NFT Collection sale and minting on Ethereum, Polygon, Arbitrum or Binance Smart Chain
Stars: ✭ 53 (-77.25%)
Mutual labels:  polygon, matic
poly-flashloan-bot
Flashloan Bot on Polygon
Stars: ✭ 199 (-14.59%)
Mutual labels:  polygon, flashloan
CryptoLogos
Hundreds of crypto logos simply named by their normalized contract address
Stars: ✭ 14 (-93.99%)
Mutual labels:  polygon, bsc
awesome-list-rpc-nodes-providers
A curated list of awesome Node providers and public PRC endpoints for Ethereum, BSC, xDAI, Fantom, Avalanche and more :)
Stars: ✭ 39 (-83.26%)
Mutual labels:  polygon, bsc
Kld Intersections
A library of intersection algorithms covering all SVG shape types
Stars: ✭ 214 (-8.15%)
Mutual labels:  polygon
Pyclipper
Cython wrapper for the C++ translation of the Angus Johnson's Clipper library (ver. 6.4.2)
Stars: ✭ 140 (-39.91%)
Mutual labels:  polygon
Imgaug
Image augmentation for machine learning experiments.
Stars: ✭ 12,107 (+5096.14%)
Mutual labels:  polygon
Client Python
A python client library for accessing Polygon's APIs
Stars: ✭ 127 (-45.49%)
Mutual labels:  polygon
mangata-node
Mangata ❤️ Substrate & Polkadot
Stars: ✭ 52 (-77.68%)
Mutual labels:  mev
Unity.library.eppz.geometry
2D Geometry for Unity. Suited for everyday polygon hassle. Polygon clipping, polygon winding direction, polygon area, polygon centroid, centroid of multiple polygons, line intersection, point-line distance, segment intersection, polygon-point containment, polygon triangulation, polygon Voronoi diagram, polygon offset, polygon outline, polygon buffer, polygon union, polygon substraction, polygon boolean operations, and more. It is a polygon fest.
Stars: ✭ 198 (-15.02%)
Mutual labels:  polygon
Round Anything
A set of OpenSCAD utilities for adding radii and fillets, that embodies a robust approach to developing OpenSCAD parts.
Stars: ✭ 122 (-47.64%)
Mutual labels:  polygon
Mapdrawingtools
this library Drawing polygon, polyline and points in Google Map and return coordinates to your App
Stars: ✭ 122 (-47.64%)
Mutual labels:  polygon
Perspectivetransform
Calculate CATransform3D between two Perspectives
Stars: ✭ 113 (-51.5%)
Mutual labels:  polygon

Poly-Flash

test test

An open source flashloan smart contract on polygon network

Installation

1. Install Node.js & yarn, if you haven't already.

2. Clone This Repo

Run the following command.

git clone https://github.com/yuichiroaoki/poly-flash.git
cd poly-flash

Quickstart

1. Setup Environment Variables

You'll need an ALCHEMY_POLYGON_RPC_URL environment variable. You can get one from Alchemy website for free.

Then, you can create a .env file with the following.

ALCHEMY_POLYGON_RPC_URL='<your-own-alchemy-polygon-mainnet-rpc-url>'

Add your Private Key

If 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.

PRIVATE_KEY='your-PRIVATE_KEY'

*Note: If using metamask, you'll have to add a 0x to the start of your private key)

2. Install Dependencies

Run the following command.

yarn install

3. Compile Smart Contracts

Run the following command.

yarn compile

4. Test on Polygon Mainnet Fork 🔥

Run the following command.

yarn test test/polygon/dodoflash.test.ts

Deploy

Once 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:

yarn deploy --network polygon

It costs about 0.2 MATIC to deploy Flashloan contract.

Example Contract

https://polygonscan.com/address/0xb6c4448386c4ecf4e5eab057351f8a6a8a465a0d

Liquidations

Deploy on the polygon mainnnet fork with the following command:

yarn liquidations

Deploy on the polygon mainnnet with the following command:

yarn liquidations --network polygon
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].