ExtropyIO / defi-bot

Tutorial for building DeFi arbitrage bots
1.18k stars 467 forks source link

Is the second article still coming ? #5

Closed tudorelu closed 3 years ago

tudorelu commented 3 years ago

What the title says. Really keen to understand the code!

codemedici commented 3 years ago

https://extropy-io.medium.com/arbitrage-bot-part-2-97e7b710dcf

Don't trade on main St until you understand what you are doing! Errors are costly. Comment out the contract call inside index.js or the best way for testing is to simulate using contracts on a testnet

tudorelu commented 3 years ago

Thank you kindly

Nisthar commented 3 years ago

@codemedici can you tell me what are the steps for using testnets? do i need to edit the smart contract (replace with testnet addresses) Right?

clacladev commented 3 years ago

I am also interested in this. I am also trying to query 0x APIs on Ropsten without much success

cosimo-de-medici commented 3 years ago

The best approach is to fork mainnet with ganache-cli like this: ganache-cli -p 7545 --fork mainnet Then make sure that in truffle-config.js your "development" network is configured to connect to localhost:7545

@Nisthar @ccarnino @tudorelu

Nisthar commented 3 years ago

@cosimo-de-medici i already have the ganache gui installed. also added the "development" options in truffle. Do you think its the same?