This repository contains a bash script to close all the remaining open orders in a closed maker-otc market.
It will only cancel those orders from the pairs included in the respecting file <NETWORK-pairs>
.
This script only removes orders which belong to the sorted book.
maker-otc
: https://github.com/makerdao/maker-otc
- seth (https://dapp.tools/)
export ETH_FROM=YOUR_ACCOUNT
export ETH_PASSWORD=ACCOUNT_PASSWORD_FILE_PATH
export ETH_KEYSTORE=KEYSTORE_PATH
(If not using the default one)export SETH_CHAIN=<kovan || ethlive>
orexport ETH_RPC_URL=YOUR_RPC_NODE_URL
export OTC=MARKET_CONTRACT_ADDRESS
./purge