This is a liquidator script for Synthetify
- First fork this repository to your own account
- You will need to go into your Phantom (or any other) wallet end export private key (preferably on a separate account).
- Then go to your freshly forked repository -> Settings -> Secrets
- Create a new secret named PRIV_KEY and paste your private key here.
- Then you can go into Actions tab and start your workflow
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.
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