Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1011 Bytes

README.md

File metadata and controls

55 lines (36 loc) · 1011 Bytes

Moola-liquidation

Moola-liquidation is a test project for writing automatic liqudations.

Installation

Use the package manager npm to install all necessary modules.

npm install

Deploy locally

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 the automatic liquidation

Run following command from the root project directory

npm start

Configure user who will be liquidate others

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}