Example parcl-v3 keeper bots written in TypeScript.
These example keepers are in alpha. Keepers may contain bugs.
Pull requests welcome. Please reach out in the discord dev channel with any questions.
-
Clone the repository:
git clone https://github.com/ParclFinance/v3-keepers-ts.git cd v3-keepers-ts
-
Install Bun globally (if not already installed):
npm i -g bun
-
Install dependencies:
bun install
-
Set up your environment variables:
- Copy the
.env.example
file to.env
- Fill in the required values in the
.env
file
- Copy the
To start the liquidator bot:
bun liquid
This command will run the liquidator bot, which will monitor margin accounts for liquidatable positions and attempt to liquidate them when found.
Note: Ensure you have properly configured your .env
file with the necessary credentials and settings before running the bot.
Keeper Name | Info |
---|---|
Liquidator | Watches margin accounts for liquidatable accounts and accounts currently in liquidation. If an account is found, then the service attempts to liquidate the account. Liquidator's margin account earns the liquidation fee rate applied to the total notional liquidated amount. |
Settler | Watches settlement requests and processes the mature requests. Each settlement request has a optional tip that goes to the settler keeper. |