Moola-liquidation is a test project for writing automatic liqudations.
Use the package manager npm to install all necessary modules.
npm install
Bring database up (you will need Docker installed) (important step before running project)
npm run up
Create empty tables for database (important step before running project)
npm run init
Stop database in safe mode (keep data untill next launch)
npm run down
Fresh database (full database restart)
npm run clear
Run following command from the root project directory
npm start
In the root directory of project find file called config.env and pass your values
Without the private key, automated liquidation will be turned off.
USER_ADDRESS={YOUR_ADDRESS}
USER_PRIVATE_KEY={YOUR_PRIVATE_KEY}