6eer / uniswap-sushiswap-arbitrage-bot

Two bots written in JS that uses flashswaps and normal swaps to arbitrage Uniswap. Includes an automated demostration.
MIT License
586 stars 264 forks source link

how can i run this demo on local chain. #16

Open yzjsbsb opened 2 years ago

yzjsbsb commented 2 years ago

Because i notice that in demo_enviroment.js, //uniswap const IRouter = require('@uniswap/v2-periphery/build/IUniswapV2Router02.json') const uRouter = new web3.eth.Contract(IRouter.abi,'0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D') //sushiswap const sRouter = new web3.eth.Contract(IRouter.abi,'0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F') You use '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D'and '0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F',they are the real address in Mainnet,and i want to know what it is 'ganache-cli --fork https://eth-mainnet.alchemyapi.io/v2/qolQHYLqPhksKzW-QBEzlzdW14pRZnTr -b 2 -d' work for, does it means run the local chain?Anyway, thx~~