A decentralized application for executing flash loan arbitrage opportunities on Uniswap v2.
The contracts
directory contains the smart contracts for the flash loan arbitrage bot:
FlashLoanArbitrageBot.sol
: The main contract that executes flash loan arbitrage trades.FlashLoan.sol
: A utility contract for interacting with flash loan providers.interfaces/
:IUniswapV2Factory.sol
: Interface for the Uniswap v2 factory contract.IUniswapV2Pair.sol
: Interface for the Uniswap v2 pair contract.IUniswapV2Router02.sol
: Interface for the Uniswap v2 router contract.
The scripts
directory contains scripts for deploying and configuring the flash loan arbitrage bot:
deploy.js
: A script for deploying the contracts to the Ethereum blockchain.config.js
: A script for configuring the bot's settings and parameters.
The test
directory contains test files for the flash loan arbitrage bot:
FlashLoanArbitrageBot.test.js
: Test file for theFlashLoanArbitrageBot
contract.
To get started with the flash loan arbitrage bot, follow these steps:
- Install the required dependencies by running
npm install
in the project root. - Configure the bot's settings and parameters by modifying the
config.js
file. - Deploy the contracts to the Ethereum blockchain by running
node scripts/deploy.js
. - Run the tests by executing
node test/FlashLoanArbitrageBot.test.js
.
This project is licensed under the MIT License. See the LICENSE
file for details.
Contributions to the flash loan arbitrage bot are welcome! Please open a pull request to submit your changes.