Market Maker Keeper is a bot that helps to keep the Zar stable coin price stable by exploiting arbitrage opportunities between the Zar price on different exchanges. Everyone can participate in the Zar ecosystem by running the Market Maker Keeper bot. The bot is designed to be run on a server and it will automatically buy and sell Zar on different exchanges to keep the price stable.
Install abigen by running the following command. This is required to generate the contract bindings.
git clone git@github.com:ethereum/go-ethereum.git
cd go-ethereum
make devtools
Clone the repository and update the submodules. This will clone the go-ethereum arbitrum module which is required to build the project.
git clone git@github.com:zarbanio/market-maker-keeper.git
cd market-maker-keeper
git submodule update --init --recursive
make code-gen
go mod download
go mod tidy
go build main.go
Go to the contracts directory and run the following command to compile the contracts.
cd dextrader && npm i && npx hardhat compile
npx hardhat node --fork https://1rpc.io/arb
npx hardhat test --network localhost
npx hardhat run scripts/deploy.ts --network main
cp configs/local/config.sample.yaml configs/local/config.yaml
Edit configs/local/config.yaml
and set the necessary values.
go run main.go run --config=configs/local/config.yaml
Contributions are welcome! If you have any enhancements, bug fixes, or new features to propose, please submit a pull request.