Skip to content

port-finance/liquidator

Repository files navigation

💸 Port Finance Loan Liquidator

Prerequisites

To run the liquidator you will need:

  • A Solana account with some SOL deposited to cover transaction fees
  • Token accounts for each token in the reserve
  • Roughly equal dollar value for each token.
  • The liquidator will automatically rebalance the account, you just need esure the account maintains enough USDC. The rebalance will be done proportionally based on config/liquidator.json.

Deploy to K8s Cluster

Make sure to add the ~/.config/solana/id file to look something like this, and run the command:

# URL is optional (For alert message)
# cat ~/.config/solana/id
CLUSTER_URL=YourSolanaClusterURL
KEYPAIR=YourBase58KeyPair
ALERT_WEBHOOK_URL=
HEARTBEAT_WEBHOOK_URL=
BALANCE_WEBHOOK_URL=

# Run
cd deploy
./deploy.sh apply

CHECK_INTERVAL is the amount of milliseconds to wait between querying users' loans

Run with pnpm

# Before run with pnpm locally, make sure you setup the environment variable correctly.
pnpm install
pnpm start

Contribution

We welcome contributions. Substantial contribution is eligible for PORT token or USD rewards.

Support

Need help? You can find us on the Port Finance Discord:

Discord Chat

About

Liquidator for Port Finance Variable Rate Lending

Resources

License

Stars

Watchers

Forks

Releases

No releases published