Skip to content

Pawel-Szydlo/liquidator

 
 

Repository files navigation

Liquidator

This is a liquidator script for Synthetify

How to setup your own liquidator

  1. First fork this repository to your own account
  2. You will need to go into your Phantom (or any other) wallet end export private key (preferably on a separate account).
  3. Then go to your freshly forked repository -> Settings -> Secrets
  4. Create a new secret named PRIV_KEY and paste your private key here.
  5. Then you can go into Actions tab and start your workflow

Maintenance

To keep your liquidator running you will need to periodically check if it was drained from xUSD or SOL, deposit it if needed and withdraw your profits.

Deploying locally

Script uses keypair from Solana and wallet provider from Anchor.

Install dependencies using npm:

npm i

also, ts-node has to be installed globally.

To run script use:

npm start

or:

ts-node ./src/index.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.6%
  • JavaScript 2.4%