+-YOU NEED TO MODIFICATE THE "index.js" FILE IN A WAY THAT IT MONITORS THE DIFFERENT PRICES OF THE SAME TOKENS IN DIFFERENT DECENTRALIZED EXCHANGES SO IT TRIGGERS THE "ArbitrageFlashLoaner.sol" S.C. AND PERFORMS THE ARBITRAGE TRADE AUTOMATICALLY.
+-For Testing the Successful working the "index.js" you should Test it with the S.C. Deployed and Verified in the Ropsten Ethereum TestNet:_ https://ropsten.etherscan.io/address/0x455835f93a2eab153b5f5d6f387c49aaa8ab9007
+You can get Ropsten Test Ether Here:_ https://faucet.metamask.io
+-Arbitrage Tutorials:_ https://blog.infura.io/build-a-flash-loan-arbitrage-bot-on-infura-part-i/ https://blog.infura.io/build-a-flash-loan-arbitrage-bot-on-infura-part-ii/
+-(1)-The first things you need to do are cloning this repository and installing its dependencies:
npm install
+-(2-A)-Once installed, open a 1st Terminal and let's run Ropsten Ethereum Test Network(https://hardhat.org/tutorial/deploying-to-a-live-network.html):\_
npx hardhat run scripts/deploy.js --network ropsten
+-(2-B)-Or you can also Test your Project Cloning the Ethereum Main Network in your Local Hardhat Node:_ https://hardhat.org/guides/mainnet-forking.html
npx hardhat node
+-(3)-Then, you can run this to Test the Script "index.js" part of the Bot:_
npm run start
Note: There's an issue in
ganache-core
that can make thenpm install
step fail.If you see
npm ERR! code ENOLOCAL
, try runningnpm ci
instead ofnpm install
.
Open http://localhost:3000/ to see your Dapp. You will
need to have Metamask installed and listening to
localhost 8545
.
You can find detailed instructions on using this repository and many tips in its documentation.
For a complete introduction to Hardhat, refer to this guide.