hatgit / dx-uniswap-arbitrage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arbitrage DutchX/Uniswap

Contract that arbitrages between:

Setup

# Install dependencies
yarn

# Compile contracts and inject networks
yarn restore

# Check out the contract addresses
yarn networks

Create a file .env using .env.example as your template.

# Create env file
cp .env.example .env

Run

yarn lint:watch

Test

truffle develop
yarn test

Deploy

# Local: Run ganache (rpc) in one tab, and then migrate
yarn rpc
yarn migrate

# Rinkeby
yarn migrate --network rinkeby

# Mainnet
yarn mainnet --network mainnet

About


Languages

Language:Solidity 57.4%Language:JavaScript 42.6%