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
.
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
# Before run with pnpm locally, make sure you setup the environment variable correctly.
pnpm install
pnpm start
We welcome contributions. Substantial contribution is eligible for PORT token or USD rewards.
Need help? You can find us on the Port Finance Discord: