This repo is archived as it has been folded into the mangrovedao/mangrove-bots repo.
This is a repo for an arbitrage contract, that can execute arbitrage between Uniswap and Mangrove. It can either do the arbitrage directly, or it can try and get the needed token, if the contract does not have enough liquidity.
- Clone repo
- Do
yarn install
- Install foundry
curl -L https://foundry.paradigm.xyz | bash
- Reopen terminal and run
foundryup
- Make sure to have an
.env
file with at least these settings:
POLYGON_PRIVATE_KEY=0x...
POLYGON_NODE_URL=<polygon node url>
LOCALHOST_URL=<localhost url>
MANGROVE=<mangrove address>
- Run
forge test