Moola-liquidation is a test project for writing automatic liqudations.
Use the package manager npm to install all necessary modules.
npm installBring database up (you will need Docker installed) (important step before running project)
npm run upCreate empty tables for database (important step before running project)
npm run initStop database in safe mode (keep data untill next launch)
npm run downFresh database (full database restart)
npm run clearRun following command from the root project directory
npm startIn 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}