Skip to content

dkelsen/dex-arbitrage-bot

Repository files navigation

Setup

$ npm install
$ npm start

Mainnet Fork

$ npm install -g ganache-cli
$ ganache-cli -f <Infura Endpoint Link> -u <Ethereum Address>

Last used mainnet fork mnemonic: fancy slow uncover journey heart bright twenty dentist damage never eye pumpkin

Ganache Related Bug

In some cases, transactions on the forked blockchain may fail to execute. This bug is most likely caused by an underlying issue in Ganache. It's recommended to start fresh and create a new fork.

Debugging

$ truffle console --network <Name>
  • Name: name of the network as specified in truffle-config.js. By default, the Truffle console will access the development network.

Details on how to interact with a contract through the console can by found in the Truffle documentation.

Testing

npm test <Network Name>

By default, Truffle will run tests on the network development. A full list of available networks can be found in truffle-config.js.

Deploy

In order to deploy this project, the Heroku CLI needs to be installed.

$ git push heroku master

To deploy a branch other than master:

$ git push heroku <Branch Name>:master

The server logs can be inspected locally in your terminal with heroku logs -t.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published