ogwurujohnson / arbitrage-bot

An arbitrage bot that detects arbitrage opportunities between pancake and bakery swaps and manages flash swap calls, to the flash swap contract
MIT License
205 stars 97 forks source link

Setup Instructions #1

Open mujahidazamcsm opened 3 years ago

mujahidazamcsm commented 3 years ago

Hi Bro..

Great job with the script.. can u plz share some setup / deployment instructions as well for this.

NICOC4PP4 commented 3 years ago

would be awesome

ogwurujohnson commented 3 years ago

Sure, will add this soon.

Oluwatob-i commented 3 years ago

How is it working without a pancakeCall function, you used uniswapv2Call

Oluwatob-i commented 3 years ago

And how are you calling flashloan without IUniswapV2Pair(pairAddress).swap( amount0, amount1, address(this), bytes('not empty') );

Oluwatob-i commented 3 years ago

And how are you calling flashloan without IUniswapV2Pair(pairAddress).swap( amount0, amount1, address(this), bytes('not empty') );

ogwurujohnson commented 3 years ago

Hey @Oluwatob-i thanks for pointing this out, i initially had this up for uniswap, recently started porting most of the code for pancakeswap, will definitely change method name to pancakeCall() before deploying the bot.

Also for this bot, flashloan calls aren't done in the contract. this is where you can find the call https://github.com/ogwurujohnson/arbitrage-bot/blob/main/index.ts#L107

fergmolina commented 3 years ago

Hi there! @ogwurujohnson I saw you made some changes with the pancakeCall(). Have you try it on mainnet?

StrainzAgent commented 3 years ago

Sure, will add this soon.

Hey there, any updates on the install/execution steps? Thanks 🙏

officialasit commented 3 years ago

Hi @ogwurujohnson , Is there any update on a sample Documentation how to set this up? Thanks a lot.

solidnav commented 3 years ago

Setup Instructions I followed: npm install trypescript tsc index.ts --resolveJsonModule --esModuleInterop node index.js But.....I am getting this error: Bot started! (node:21074) UnhandledPromiseRejectionWarning: Error: network does not support ENS (operation="ENS", network="unknown", code=UNSUPPORTED_OPERATION, version=providers/5.0.24)

Spent quite sometime trying to figure this out, but to no avail. Any idea what is happening here?