@gnosis.pm/dx-uniswap-arbitrage
v0.1.5
Published
An Ethereum contract to execute arbitrage functions against DutchX protocol
Downloads
12
Readme
Arbitrage DutchX/Uniswap
Contract that arbitrages between:
- DutchX protocol: http://dutchx.readthedocs.io/en/latest/
- Uniswap protocol: https://uniswap.io/
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