Skip to content

lazyprogrammerio/licquidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Lickuidator

Black magic for Polygon liquidations on QiDao.

LEGAL NOTE

THE PURPOSE OF THIS REPOSITORY IS FOR EDUCATIONAL PURPOSES ONLY.

BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM.
THE ENTIRE RISK AS TO THE OUTCOMES, QUALITY AND PERFORMANCE OF THE
PROGRAM IS WITH YOU.
SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
SERVICING, REPAIR, CORRECTION OR LOSS.

How to get all the QiDao liquidable vaults

cd client

npm install

# higher cost than 0 MAI (all)
npm run find_liquidations

# higher cost than 1 MAI
MIN_MAI_COST=1 npm run find_liquidations 1

# for other networks
# supported networks: matic, avax, arbitrum, moonriver, ftm
NETWORK_NAME=ftm node client.js find_liquidations 1

# if you want to use a specific RPC endpoint
export PRIVATE_RPC="my_rpc"

# if the RPC endpoint is username/password protected
export PRIVATE_RPC_USERNAME="user"
export PRIVATE_RPC_PASSWORD="password"

How to build and deploy the liquidator contract

cd contracts
npm install

npx hardhat compile

export ETHEREUM_WALLET_PRIVATE_KEY="YOUR_PRIVATE_KEY"

npx hardhat run scripts/deploy.js --network matic

About

Black magic for Polygon liquidations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published